summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2020-05-08 06:07:48 -0400
committerDaniel Micay <danielmicay@gmail.com>2020-05-08 06:07:48 -0400
commit299c79234d57d167e2af13be7c27072431f802a9 (patch)
treebf01e11f5afbde862c2d3b4447fe8e1b848680af
parent7308089668de3f5e76f710e32582ddd688ac94a3 (diff)
add back workaround for broken backlinks
-rw-r--r--nginx/server.conf5
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";