Nginx代理后如何针对请求的Client IP进行限流 #2456
Labels
area/gateway-flow-control
Issues or PRs related to API gateway flow control
good first issue
Good for newcomers
kind/enhancement
Category issues or prs related to enhancement.
因为使用了Nginx,针对请求的Client IP进行限流时有问题
所有请求获取到的ip地址都为同一个地址172.*.*.*,(应用部署在docker容器内)。
看了下com.alibaba.csp.sentinel.adapter.gateway.sc.ServerWebExchangeItemParser#getRemoteAddress的方法,获取ip时使用的代码是
是否可以自定义获取请求ip地址?或者可以让sentinel得到代理后真实请求ip的方法
The text was updated successfully, but these errors were encountered: