From 61f9ba2f729ddef9bc261c35d92dd0163c12b353 Mon Sep 17 00:00:00 2001 From: yidl Date: Mon, 1 Sep 2025 22:05:35 +0800 Subject: [PATCH] =?UTF-8?q?/SH05/=20=E5=A2=9E=E5=8A=A0=E4=BB=A3=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf.gateway | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nginx.conf.gateway b/nginx.conf.gateway index a54fce8..7b4c9d9 100644 --- a/nginx.conf.gateway +++ b/nginx.conf.gateway @@ -276,6 +276,9 @@ http { proxy_ssl_server_name on; proxy_ssl_verify off; proxy_set_header Authorization $http_authorization; + # 其他标准代理头 + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } # UI前端路由 location /{