summaryrefslogtreecommitdiff
path: root/nginx
diff options
context:
space:
mode:
authorDaniel Micay <daniel.micay@grapheneos.org>2024-03-12 02:57:34 -0400
committerDaniel Micay <daniel.micay@grapheneos.org>2024-03-12 02:57:34 -0400
commit9e1c1a731f43d9810b520a5e0e58cf861c791ca0 (patch)
treed732d9fca45c1fa33842037e5cb3c81d49292b2e /nginx
parentc731199222df6568c40c90a09ca008bb577d5936 (diff)
add redirect for community rules forum thread
Diffstat (limited to 'nginx')
-rw-r--r--nginx/nginx.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 0ddab41d..cd1fb5b4 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -287,6 +287,12 @@ http {
return 301 https://discord.com/invite/grapheneos;
}
+ location = "/code-of-conduct" {
+ include snippets/security-headers.conf;
+ add_header Cache-Control "public, max-age=86400";
+ return 301 https://discuss.grapheneos.org/d/11-grapheneos-code-of-conduct;
+ }
+
location = /404 {
internal;
include snippets/security-headers.conf;