use 301 redirect with 1 day caching for Discord

There are scenarios where we may have to change the URL so the default
301 behavior is inappropriate but this will work fine.
This commit is contained in:
Daniel Micay 2023-12-25 10:55:05 -05:00
parent 02a97dd883
commit 6fbd66ddfa

View File

@ -281,7 +281,9 @@ http {
} }
location = "/discord" { location = "/discord" {
return 302 https://discord.com/invite/grapheneos; include snippets/security-headers.conf;
add_header Cache-Control "public, max-age=86400";
return 301 https://discord.com/invite/grapheneos;
} }
location = /404 { location = /404 {