RichardLiu 我在kubesphere2.1平台上面部署了nginx,并且用nginx来代理后端服务,现在不能获取到用户真实的IP地址,只能获取到service的IP地址,请问该如何做才能获取到客户端的真实IP地址呢?
nightthief 我也遇到同样的问题,请教各位大神应该如何进行配置? 目前在 kubesphere-router-devproject-nginx 这个configmap下配置了 compute-full-forwarded-for: ‘true’ forwarded-for-header: ‘“X-Forwarded-For”’ use-forwarded-headers: ‘true’ 但是并未有任何效果
yunkunrao 加上use-proxy-protocol: "true"呢,可以参考一下这篇文章:https://www.digitalocean.com/community/questions/how-to-set-up-nginx-ingress-for-load-balancers-with-proxy-protocol-support