How do I recover true user IPs?

I am using a Discourse container that is using Cloudflare for performance and security. However, I am encountering a problem: User IPs are not what they really are.

This is most likely Cloudflare’s fault, but there are solutions to this issue. What is the “official” tutorial for fixing this problem?

I don’t know about Official - but a relevant post would be this one:
https://meta.discourse.org/t/config-nginx-to-receive-real-ip-when-using-cloudflare-for-noobs/22645/6?u=deanmarktaylor

3 Likes

This did the trick, thanks!

You should now transition to the official cloudflare.template.yml file, which will stay updated when CloudFlare acquires new IPs.

1 Like