nginx: reorder location blocks

This commit is contained in:
Daniel Micay 2020-05-08 06:55:44 -04:00
parent 299c79234d
commit 710a026550

View File

@ -103,15 +103,15 @@ server {
add_header Cache-Control "public, max-age=1800";
}
location ~ "\.(br|gz)" {
internal;
}
# http://www.twipu.com/GrapheneOS doesn't handle links with fragments properly
location ~ "^/(.*)<a href=$" {
return 301 https://grapheneos.org/$1;
}
location ~ "\.(br|gz)" {
internal;
}
location / {
include /etc/nginx/snippets/security-headers.conf;
add_header Cache-Control "public, max-age=1800";