api7 / apisix-build-tools

Build tools to package and release
Apache License 2.0
125 stars 96 forks source link

Can the --with-stream_realip_module module be added when building nginx? #379

Closed xiaoxuanyo closed 7 months ago

xiaoxuanyo commented 7 months ago

I deployed a load balancer in front of apisix. The load balancer accepts the client's TCP request and forwards it to apisix. When I want to obtain the client's original IP in the tcp module of the apisix proxy for whitelist restriction, the current situation is The original IP cannot be obtained in the stream. Although apisix can be configured to accept the proxy protocol, due to the lack of support from the above module, set_real_ip_from cannot be configured in the stream, resulting in the inability to obtain the real request IP.