diff options
| -rw-r--r-- | nginx/server.conf | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nginx/server.conf b/nginx/server.conf index f917f270..cdf91204 100644 --- a/nginx/server.conf +++ b/nginx/server.conf @@ -107,6 +107,11 @@ server { internal; } + # http://www.twipu.com/GrapheneOS doesn't handle links with fragments properly + location ~ "^/(.*)<a href=$" { + return 301 https://grapheneos.org/$1; + } + location / { include /etc/nginx/snippets/security-headers.conf; add_header Cache-Control "public, max-age=1800"; |
