From e053a6a4833906ae1d09dbda979d44fc4163ff17 Mon Sep 17 00:00:00 2001 From: colin Date: Wed, 9 Oct 2024 15:16:30 +0800 Subject: [PATCH] =?UTF-8?q?feat(wapi):=20=E8=8E=B7=E5=8F=96=E5=A4=A9?= =?UTF-8?q?=E6=B0=94=E4=BF=A1=E6=81=AF=E6=97=B6=E4=BB=8E=E7=94=A8=E6=88=B7?= =?UTF-8?q?ip=E5=AE=9A=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/vue/docker/nginx/default.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/vue/docker/nginx/default.conf b/apps/vue/docker/nginx/default.conf index db8e757a6..0956b8c9c 100644 --- a/apps/vue/docker/nginx/default.conf +++ b/apps/vue/docker/nginx/default.conf @@ -42,6 +42,9 @@ server { proxy_pass http://www.nmc.cn/; proxy_set_header Host www.nmc.cn; proxy_set_header Referer http://www.nmc.cn; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header REMOTE-HOST $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location /signalr-hubs/ {