summaryrefslogtreecommitdiff
path: root/nginx
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2020-05-08 06:55:44 -0400
committerDaniel Micay <danielmicay@gmail.com>2020-05-08 06:55:44 -0400
commit710a02655053d733fa7f4a4875ea323c9b8c8ebb (patch)
tree25bc93970419781556ace30a5f6957ec1ec98c0d /nginx
parent299c79234d57d167e2af13be7c27072431f802a9 (diff)
nginx: reorder location blocks
Diffstat (limited to 'nginx')
-rw-r--r--nginx/server.conf8
1 files changed, 4 insertions, 4 deletions
diff --git a/nginx/server.conf b/nginx/server.conf
index cdf91204..32127057 100644
--- a/nginx/server.conf
+++ b/nginx/server.conf
@@ -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";