From 05885efe936282f728db61479eaa8491c30a5a3c Mon Sep 17 00:00:00 2001 From: Rainshaw Date: Thu, 24 Jun 2021 23:12:46 +0800 Subject: [PATCH] fix nginx conf (#896) * fix nginx conf --- server-ce/nginx/sharelatex.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server-ce/nginx/sharelatex.conf b/server-ce/nginx/sharelatex.conf index 8123e65bcd..723fb7fbe7 100644 --- a/server-ce/nginx/sharelatex.conf +++ b/server-ce/nginx/sharelatex.conf @@ -9,6 +9,7 @@ server { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_read_timeout 10m; @@ -20,6 +21,7 @@ server { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;