关于网关配置X-Forwarded-For获取真实IP问题
anhao opened this issue · 2 comments
anhao commented
默认配置
rainbond/gateway/controller/config/config.go
Line 108 in 8a3186c
"X-Forwarded-For": "$remote_addr"
默认为 $remote_addr ,这样如果上层配置了CDN,会获取不到真实IP , 需要改成 $proxy_add_x_forwarded_for;
临时解决方案是 在网关策略里手动配置请求头
ZhangSetSail commented
是否有兴趣参与贡献一下呐。
Issues-translate-bot commented
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Are you interested in participating and contributing?