nginx: reorder location blocks
This commit is contained in:
parent
299c79234d
commit
710a026550
@ -103,15 +103,15 @@ server {
|
|||||||
add_header Cache-Control "public, max-age=1800";
|
add_header Cache-Control "public, max-age=1800";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ "\.(br|gz)" {
|
|
||||||
internal;
|
|
||||||
}
|
|
||||||
|
|
||||||
# http://www.twipu.com/GrapheneOS doesn't handle links with fragments properly
|
# http://www.twipu.com/GrapheneOS doesn't handle links with fragments properly
|
||||||
location ~ "^/(.*)<a href=$" {
|
location ~ "^/(.*)<a href=$" {
|
||||||
return 301 https://grapheneos.org/$1;
|
return 301 https://grapheneos.org/$1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ "\.(br|gz)" {
|
||||||
|
internal;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
include /etc/nginx/snippets/security-headers.conf;
|
include /etc/nginx/snippets/security-headers.conf;
|
||||||
add_header Cache-Control "public, max-age=1800";
|
add_header Cache-Control "public, max-age=1800";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user