¿La etiqueta proxy X-Forwarded-For no es reconocida por Discourse?

Take a look at the templates/cloudflare.template.yml file. Basically, you need to insert set_real_ip_from directives for the full list of load balancer IPs.