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 /{