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:
Daniel Micay 2021-11-27 00:58:21 -05:00
parent 6b26326db5
commit 5345cf5927

View File

@ -227,6 +227,11 @@ http {
return 301 /faq#default-connections;
}
# redirect away from the old SVG favicon location
location = /mask-icon.svg {
return 301 /favicon.svg;
}
location = /404 {
internal;
include snippets/security-headers.conf;
@ -350,11 +355,6 @@ http {
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
location ~ "^/([^\s]*)<a href=$" {
return 301 /$1;