From 000ecfe858401711134b8d3a6909570e5a5df121 Mon Sep 17 00:00:00 2001 From: mhy <2624196756@qq.com> Date: Mon, 28 Oct 2024 15:13:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9nginx=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/nginx.conf b/config/nginx.conf index fa74a80..34b2f9f 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -42,6 +42,9 @@ add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization'; proxy_pass http://PROXY_LOGIN_SERVICE; proxy_redirect default; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location /mainBody { -- GitLab