backword compatiblity for media urls
This commit is contained in:
parent
c8bafefc55
commit
3bef7df45d
3 changed files with 10 additions and 2 deletions
|
@ -32,6 +32,10 @@ server {
|
||||||
alias /www/m/;
|
alias /www/m/;
|
||||||
add_header Cache-Control "public, max-age=604800, immutable";
|
add_header Cache-Control "public, max-age=604800, immutable";
|
||||||
}
|
}
|
||||||
|
# backwards compatibility with versions before 2023.11
|
||||||
|
location ~* ^/media/(album|book|game|item|movie)/(.+)$ {
|
||||||
|
return 302 https://$host/m/$1/$2;
|
||||||
|
}
|
||||||
# Proxies media and remote media with caching
|
# Proxies media and remote media with caching
|
||||||
location ~* ^/(media|proxy) {
|
location ~* ^/(media|proxy) {
|
||||||
# Cache media and proxied resources
|
# Cache media and proxied resources
|
||||||
|
|
|
@ -40,6 +40,10 @@ server {
|
||||||
alias /www/m/;
|
alias /www/m/;
|
||||||
add_header Cache-Control "public, max-age=604800, immutable";
|
add_header Cache-Control "public, max-age=604800, immutable";
|
||||||
}
|
}
|
||||||
|
# backwards compatibility with versions before 2023.11
|
||||||
|
location ~* ^/media/(album|book|game|item|movie)/(.+)$ {
|
||||||
|
return 302 https://$host/m/$1/$2;
|
||||||
|
}
|
||||||
# Proxies media and remote media with caching
|
# Proxies media and remote media with caching
|
||||||
location ~* ^/(media|proxy) {
|
location ~* ^/(media|proxy) {
|
||||||
# Cache media and proxied resources
|
# Cache media and proxied resources
|
||||||
|
|
|
@ -98,7 +98,7 @@
|
||||||
</fieldset>
|
</fieldset>
|
||||||
{% if request.user.mastodon_acct %}
|
{% if request.user.mastodon_acct %}
|
||||||
<fieldset>
|
<fieldset>
|
||||||
转发到 @{{ request.user.mastodon_acct }} 时间轴时:
|
转发到<em data-tooltip="@{{ request.user.mastodon_acct }}">主ID</em>时间轴时:
|
||||||
<input type="radio"
|
<input type="radio"
|
||||||
name="mastodon_repost_mode"
|
name="mastodon_repost_mode"
|
||||||
value="0"
|
value="0"
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label>
|
<label>
|
||||||
发表时默认选中转发到 @{{ request.user.mastodon_acct }} 时间轴
|
发表时默认选中 转发到<em data-tooltip="@{{ request.user.mastodon_acct }}">主ID</em>时间轴
|
||||||
<input type="checkbox"
|
<input type="checkbox"
|
||||||
name="mastodon_default_repost"
|
name="mastodon_default_repost"
|
||||||
value="1"
|
value="1"
|
||||||
|
|
Loading…
Add table
Reference in a new issue