How to fix all traffic showing as coming from Cloudflare servers instead of the user's browser IP

When deploying Discourse in a 1Panel container with a reverse proxy and using Cloudflare CDN for the domain, how can I resolve the issue where all traffic appears to originate from Cloudflare’s servers instead of the users’ actual browser IP addresses?

You want to use the Cloudflare template in your app.yml.

Tried it, but it didn’t work :rofl:. The failure might be because I deployed it using a 1panel container and used a reverse proxy?

Can you edit the nginx configuration file directly? If so, make the changes suggested here. And now after reloading the nginx service it should be working. Hope this helps!