diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2020-12-10 16:18:35 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2020-12-10 16:18:35 -0500 |
| commit | 92ffe8a5e7814f025f87814f8d1d67b57869fcef (patch) | |
| tree | 7505e938501e0d103519fa3ef1e89d040a3eb729 /nginx | |
| parent | 1d5f63b97934c8a11ec0f18fd0879d2789da80a8 (diff) | |
use $host in http redirect + add domains
Diffstat (limited to 'nginx')
| -rw-r--r-- | nginx/nginx.conf | 4 |
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 { |
