summaryrefslogtreecommitdiff
path: root/nginx
diff options
context:
space:
mode:
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 {