Closed Practicalbutterfly5 closed 1 year ago
This is an issue in documentation, not cloudflared. X-Real-IP isn't typically sent by Cloudflare, and it's also not sent for a proxied website without Cloudflare Tunnels. There are some exceptions where X-Real-IP is sent when Workers are utilized, but in general I recommend using [cf-connecting-ip] (https://developers.cloudflare.com/fundamentals/get-started/reference/http-request-headers/#cf-connecting-ip) as you described.
We'll address this by correcting the documentation relating to X-Real-IP in the developer docs.
Describe the bug Cloudflare documentation mentions it will set X-Real-Ip before sending the request to origin server. But it appears that it is not being set.
To Reproduce Steps to reproduce the behavior:
If it's an issue with Cloudflare Tunnel: cloudflared config: Not applicable as tunnel was run using
cloudflared tunnel run --token token
Expected behavior X-Real-Ip should be set and nextcloud logs should show real ip.
Environment and versions