Discourse not support proxy_protocol

If discourse after haproxy ,now we use proxy_protocol,but now discourse not support it.
nginx doc:

I try to fix this problem by using template,but

Since most of them are based on similar templates, it may not be a good solution

PR for it

I think you should handle this in a similar way of how Cloudflare is being handled (after all, Cloudflare is an upstream proxy / load balancer as well). See discourse_docker/cloudflare.template.yml at ae5a223074388795e4ea073a162cbf1dc174d392 · discourse/discourse_docker · GitHub

1 Like