From efbf112e78854c1aab7d193708c61b77f703ef8d Mon Sep 17 00:00:00 2001 From: hujiahao-hjh <82502479+hujiahao-hjh@users.noreply.github.com> Date: Fri, 6 Aug 2021 16:22:15 +0800 Subject: [PATCH] fix: nginx.conf change (#877) --- nginx.conf.template | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nginx.conf.template b/nginx.conf.template index 4c6c2b5954..ea6f46b752 100644 --- a/nginx.conf.template +++ b/nginx.conf.template @@ -163,6 +163,10 @@ server { } index index.html; try_files /static/shell/index.html /index.html =404; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $my_scheme; + proxy_set_header Host $http_host; } location ^~ /wb {