summaryrefslogtreecommitdiff
path: root/nginx
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2023-02-09 09:28:43 -0500
committerDaniel Micay <danielmicay@gmail.com>2023-02-09 09:50:08 -0500
commit763c17a058701bf52aadabd88734ed0a3ac77063 (patch)
tree0e1e2f20b5076d56dab0a813cdc8177c791682c5 /nginx
parent3909151fc854028e3759a49a156dd0e2b1c993e4 (diff)
unify HTTP redirect server blocks
Diffstat (limited to 'nginx')
-rw-r--r--nginx/nginx.conf13
1 files changed, 1 insertions, 12 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 9ee3e115..bed723e2 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -125,11 +125,10 @@ http {
server {
listen 80 backlog=4096;
listen [::]:80 backlog=4096;
- server_name grapheneos.org www.grapheneos.org grapheneos.app www.grapheneos.app grapheneos.ca www.grapheneos.ca grapheneos.com www.grapheneos.com grapheneos.dev www.grapheneos.dev grapheneos.info www.grapheneos.info grapheneos.net www.grapheneos.net grapheneos.ovh www.grapheneos.ovh grapheneos.page www.grapheneos.page vanadium.app www.vanadium.app;
+ server_name grapheneos.org mta-sts.grapheneos.org www.grapheneos.org grapheneos.app mta-sts.grapheneos.app www.grapheneos.app grapheneos.ca mta-sts.grapheneos.ca www.grapheneos.ca grapheneos.com mta-sts.grapheneos.com www.grapheneos.com grapheneos.dev mta-sts.grapheneos.dev www.grapheneos.dev grapheneos.info mta-sts.grapheneos.info www.grapheneos.info grapheneos.net mta-sts.grapheneos.net www.grapheneos.net grapheneos.ovh mta-sts.grapheneos.ovh www.grapheneos.ovh grapheneos.page mta-sts.grapheneos.page www.grapheneos.page vanadium.app mta-sts.vanadium.app www.vanadium.app mta-sts.mail.grapheneos.org;
root /var/empty;
- # use $host to set up HSTS for redirect domains
return 301 https://$host$request_uri;
}
@@ -496,16 +495,6 @@ http {
}
server {
- listen 80;
- listen [::]:80;
- server_name mta-sts.grapheneos.org mta-sts.mail.grapheneos.org mta-sts.grapheneos.app mta-sts.grapheneos.ca mta-sts.grapheneos.com mta-sts.grapheneos.dev mta-sts.grapheneos.info mta-sts.grapheneos.net mta-sts.grapheneos.ovh mta-sts.grapheneos.page mta-sts.vanadium.app;
-
- root /var/empty;
-
- return 301 https://$host$request_uri;
- }
-
- server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name mta-sts.grapheneos.org mta-sts.mail.grapheneos.org mta-sts.grapheneos.app mta-sts.grapheneos.ca mta-sts.grapheneos.com mta-sts.grapheneos.dev mta-sts.grapheneos.info mta-sts.grapheneos.net mta-sts.grapheneos.ovh mta-sts.grapheneos.page mta-sts.vanadium.app;