summaryrefslogtreecommitdiff
path: root/nginx
diff options
context:
space:
mode:
authorDaniel Micay <daniel.micay@grapheneos.org>2024-03-20 20:50:48 -0400
committerDaniel Micay <daniel.micay@grapheneos.org>2024-03-20 20:52:36 -0400
commit26d90ef5d69c30873e95b052b9b4e7bef202788a (patch)
treeedd7f1563bf1aedea315bedff919e90bcb98614e /nginx
parent962c0632331fcec45021c3d39758c674819ff71d (diff)
stop redirecting the entire vanadium.app domain
Diffstat (limited to 'nginx')
-rw-r--r--nginx/nginx.conf22
1 files changed, 21 insertions, 1 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 2f309d99..3e0b5607 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -167,16 +167,36 @@ http {
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
- server_name vanadium.app www.vanadium.app;
+ server_name www.vanadium.app;
keepalive_timeout 3m;
include snippets/security-headers.conf;
add_header Cross-Origin-Resource-Policy "same-origin" always;
+ # https://trac.nginx.org/nginx/ticket/2012
location / {
+ return 301 https://vanadium.app$request_uri;
+ }
+ }
+
+ server {
+ listen 443 ssl http2;
+ listen [::]:443 ssl http2;
+ server_name vanadium.app;
+
+ keepalive_timeout 3m;
+
+ include snippets/security-headers.conf;
+ add_header Cross-Origin-Resource-Policy "same-origin" always;
+
+ location = / {
return 301 https://grapheneos.org/features#vanadium;
}
+
+ location / {
+ return 404;
+ }
}
server {