simplify /mask-icon.svg redirect
This no longer needs to use a regular expression as a workaround now that file path replacement uses template syntax.
This commit is contained in:
parent
6b26326db5
commit
5345cf5927
@ -227,6 +227,11 @@ http {
|
|||||||
return 301 /faq#default-connections;
|
return 301 /faq#default-connections;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# redirect away from the old SVG favicon location
|
||||||
|
location = /mask-icon.svg {
|
||||||
|
return 301 /favicon.svg;
|
||||||
|
}
|
||||||
|
|
||||||
location = /404 {
|
location = /404 {
|
||||||
internal;
|
internal;
|
||||||
include snippets/security-headers.conf;
|
include snippets/security-headers.conf;
|
||||||
@ -350,11 +355,6 @@ http {
|
|||||||
add_header Cache-Control "public, max-age=1800";
|
add_header Cache-Control "public, max-age=1800";
|
||||||
}
|
}
|
||||||
|
|
||||||
# redirect away from the old SVG favicon location
|
|
||||||
location ~ /mask\-icon.svg {
|
|
||||||
return 301 /favicon.svg;
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://www.twipu.com/GrapheneOS doesn't handle links with fragments properly
|
# https://www.twipu.com/GrapheneOS doesn't handle links with fragments properly
|
||||||
location ~ "^/([^\s]*)<a href=$" {
|
location ~ "^/([^\s]*)<a href=$" {
|
||||||
return 301 /$1;
|
return 301 /$1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user