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
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
我认为您应该以与处理 Cloudflare 类似的方式来处理此问题(毕竟,Cloudflare 本身也是一个上游代理/负载均衡器)。请参阅 discourse_docker/templates/cloudflare.template.yml at ae5a223074388795e4ea073a162cbf1dc174d392 · discourse/discourse_docker · GitHub
关于代理协议的支持是否有任何变化?
在我们的设置中,我们目前使用 haproxy 进行 SSL 终止,并使用 apache2 作为外部反向代理,然后连接到 web_only discourse 容器的 unix 套接字。我想切换到 nginx 作为外部反向代理,并实现代理协议,这也得到了 haproxy 的支持。
看起来 web_only 容器和内部的 nginx 仍然不支持代理协议。这是正确的吗?
我知道他们在托管中使用 haproxy。
您要解决的问题是您希望正确的 IP 地址能够到达 Discourse 吗?您可以查看类似 如何在具有现有 Apache 站点的服务器上设置 Discourse 这样的主题,了解如何配置内部 nginx 来传递 IP 地址。