location / {
proxy_pass https://127.0.0.1:8888/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection Upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
}
用这个代码,ip永远是127.0.0.1
但是这个代码反代其他网站 IP都是真实IP,面板是有其它Header参数吗?