Closed muditdixit7 closed 7 years ago
My use case is : 1) I want the ip information with which request is sent if http_x_forwarded_for is not set.` 2) I Want the ip information of forwaded ip if http_x_forwarded_for is set.
Any way to achieve this.Currently i am able to achieve only one of the 2 mentioned above by setting
source = http_x_forwarded_for
Then you want the realip module.
Im setting
http_x_forwarded_for
in my request butngx_http_geoip2_module
module is not picking the forwaded ip and providing me geoip information of ip with which request is sent.