Also remember to add correct set_real_ip_from directives in the Discourse container for the frontend’s ipv4 and ipv6 addresses. (See cloudflare.template.yml for an example)
Thanks for your reply. I’m using an external smtp server and a different CDN.
Cloudflare is not enough to hide the IP address. iplogger. It is possible to learn the IP address in tools such as org. I couldn’t see anything in the discourse settings to prevent this. So iplogger. Thanks to a link taken from the org address, it is possible to learn the real IP address of the server at the entry points of the forum.
I’m thinking of using Discourse for a political party. Those with opposing views try too many avenues of attack. I need to build this forum solid.
It should be, if Cloudflare can’t hide it then your reverse proxy also cannot. But it’s possible, so you must have a configuration mistake somewhere. What do you mean with “such as org” ?
Actually, I’m talking about the above. A URL can be created with the help of the tool available at “iplogger.org”. When you take this URL and place it in the thread in the discourse forum, you can learn the real IP address of the server. Because the VPS where discourse is installed is making a direct request to the connection placed inside the topic. This allows the server’s real IP address to be exposed.
In the topic below, it says that a proxy server should be set up for outgoing requests from the server.
You need a proxy server for that, not a reverse proxy. You can Google for “free proxy server” to find some, or run something like Squid on a vm that allows ssh only from your ip, perhaps behind a bastion.
I’m not quite sure how to configure discourse to use it, but it might be as simple as setting an env variable.