goodrain/rainbond

关于网关配置X-Forwarded-For获取真实IP问题

anhao opened this issue · 2 comments

默认配置

"X-Forwarded-For": "$remote_addr",

"X-Forwarded-For":   "$remote_addr"

默认为 $remote_addr ,这样如果上层配置了CDN,会获取不到真实IP , 需要改成 $proxy_add_x_forwarded_for;

临时解决方案是 在网关策略里手动配置请求头

是否有兴趣参与贡献一下呐。

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Are you interested in participating and contributing?