Keter hasn't been based on nginx for quite a while now. Recent versions of Keter set the X-Real-IP
request header to containing the client's IP address (see issue #8), which you can use in wai-extra via IPAddrSource.
Show the Real IP in the Logs of a Keter Managed App
-
01-10-2022 - |
Question
I would like to display the actual IP of the request as opposed to the localhost in my log files. Since Keter manages the Nginx config I am not sure what I need to change to get the real ip.
This is what I see now:
127.0.0.1 - - [11/Jan/2014:09:25:08 +0000] "GET /favicon.ico HTTP/1.1" 200 - ""
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:27.0) Gecko/20100101 Firefox/27.0"
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow