通过nginx代理访问FineReport,平台日志显示的都是nginx主机的IP,nginx按以下配置仍然无法获取用户真实IPserver { listen 8080 default; location / { proxy_pass http://报表服务IP:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-Port $server_port; proxy_set_header X-Forwarded-Proto $scheme; }}