From 5345cf5927dfade39679c05619076f0d34ab3947 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 27 Nov 2021 00:58:21 -0500 Subject: [PATCH] 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. --- nginx/nginx.conf | 10 +++++----- 1 file 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]*)