From 92ffe8a5e7814f025f87814f8d1d67b57869fcef Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 10 Dec 2020 16:18:35 -0500 Subject: [PATCH] use $host in http redirect + add domains --- nginx/nginx.conf | 4 ++-- 1 file 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 {