Valid nginx configuration with 'X-Forwarded-For' setup

Hi

The documentation (NGINX configuration — Nextcloud latest Administration Manual latest documentation) does not seems to contain the setup for X-Forwarded-For and using it I am not able to get the real user IP in the logs (the proxy IP is used).

  • Can someone confirm if the doc config is giving them real IP in logs ?

  • Otherwise can anyone cut/paste a configuration with working IP foward ?

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/reverse_proxy_configuration.html