Closed NoobOfAll closed 2 months ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
Nextcloud/config/nginx/site-confs/default.conf
# display real ip in nginx logs when connected through reverse proxy via docker network set_real_ip_from 172.28.1.24; set_real_ip_from 192.168.0.10; real_ip_header X-Forwarded-For; real_ip_recursive on;
The last line is needed for multiple IPs to be considered as internal IPs
OP wrote their solution which will suffice, but i will note that putting our containers through cf tunnels, vpns, or proxy services are out of scope for us. Presumably you need the cloudflare real ip mod.. Closing this as out of scope for support.
Is there an existing issue for this?
Current Behavior
The reported IP shows either the internal Proxy IP as the access IP or the Tunnel IP as the access IP
Expected Behavior
The final User IP should be visible
Steps To Reproduce
Use cloudlfared Tunnel to connect to a Reverse Proxy which sends the connection to Nextcloud
Environment
CPU architecture
x86-64
Docker creation
Container logs