diff options
Diffstat (limited to 'nginx')
| -rw-r--r-- | nginx/server.conf | 8 |
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"; |
