The IP address in Discourse’s user information shows CloudFlare’s IP address

The problem has been found. I was using TCP load balancing for internal forwarding and it was not configured correctly. It has since been fixed. However, the origin server is in China, and using CloudFlare actually made it slower. I have now abandoned CloudFlare. Internal forwarding also involves parsing the user IP address, which was resolved using real_ip_header proxy_protocol.

2 Likes