Cannot get Real IP to show in logs
Struggling hard with this one for whatever reason. Have bookstack set up and running with custom domain. I am using Nginx Proxy Manager for this. There seems to be something I am missing because in the bookstack audit logs the only IP address it shows is the docker gateway IP, 172.20.0.1.
In my bookstack compose file I have APP_PROXY=* to just allow all proxies while I sort this out.
Nginx Proxy Manager passes some defaults through as you can see here https://github.com/nginxproxymanager/nginx-proxy-manager/issues/1556#issuecomment-960628795
I simply can't figure out what else needs to be added, or where, to get the real IP of the client to show in the audit logs. If anyone can share a snippet of their working configs that would be appreciated.
Posted Apr 14, 2022, 1:29 PM UTC
Have you tried passing
APP_PROXIES=172.20.0.1to the BookStack container (Or set this value in the BookStack.env)?Oh man. If that is it I will be annoyed with myself. I have "app_proxy" but it should be "app_proxies". Will change and report back. Thank you.
Edit: yup. I'm the idiot. That did the trick. Thank you u/ssddanbrown