discourse/dockerでNginxの設定を直接変更するには?

ご協力いただき、ありがとうございます。

私の環境で動作した解決策は以下の通りです:

  1. Let’s Encrypt と HTTPS を無効化しました:
#- templates/web.ssl.template.yml

#- templates/web.letsencrypt.ssl.template.yml
```\n
2. Discourse の SSL 証明書は HAProxy が処理するようになりました。
3. `/var/discourse/containers/app.yml` ファイルにこの設定を使用しました

run:

  • replace:
    filename: /etc/nginx/conf.d/discourse.conf
    from: “types {”
    to: |
    set_real_ip_from 192.68.1.8; # HAProxy IP ADDRESS
    real_ip_header X-Forwarded-For;
    real_ip_recursive on;
    types {

これで、Discourse の管理インターフェースに公開 IP が表示されるようになりました:

![Screenshot_20260705_184755_Chrome|686x321](upload://xt9PVScHKKFJ3FtoCXRsI1UU9AM.jpeg)

@Ethsim2

再度、ご協力いただきありがとうございます。:grin: