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
. 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!
Curious on the reasons for running 2 reverse proxies? One at the hosting company and CloudFlare. Is there a technical reason?
I deployed Discourse using containers via the 1Panel server management panel (open-source) for convenient server management.
The 1Panel architecture is: User -> Cloudflare -> 1Panel Nginx -> Discourse container.
My understanding is that even if I modify the app.yml configuration in Discourse, 1Panel’s Nginx still sits between Cloudflare and Discourse.