summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2020-12-10 16:18:35 -0500
committerDaniel Micay <danielmicay@gmail.com>2020-12-10 16:18:35 -0500
commit92ffe8a5e7814f025f87814f8d1d67b57869fcef (patch)
tree7505e938501e0d103519fa3ef1e89d040a3eb729
parent1d5f63b97934c8a11ec0f18fd0879d2789da80a8 (diff)
use $host in http redirect + add domains
-rw-r--r--nginx/nginx.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index dc3fd45d..0c097b36 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -64,11 +64,11 @@ http {
server {
listen 80;
listen [::]:80;
- server_name www.grapheneos.org grapheneos.org;
+ server_name www.grapheneos.org grapheneos.org www.grapheneos.app grapheneos.app;
root /var/empty;
- return 301 https://grapheneos.org$request_uri;
+ return 301 https://$host$request_uri;
}
server {