summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2021-11-27 00:58:21 -0500
committerDaniel Micay <danielmicay@gmail.com>2021-11-27 00:59:14 -0500
commit5345cf5927dfade39679c05619076f0d34ab3947 (patch)
treeb616795b6f5ea3de2fb4dc3aaada0ea542f45ab9
parent6b26326db537d12d980b6aa2e82f3621bc767b43 (diff)
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.
-rw-r--r--nginx/nginx.conf10
1 files changed, 5 insertions, 5 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 784943dc..50bac151 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -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;