How can I modify the Nginx configuration directly within discourse/docker?

Thank you for your help.

Here is the solution that worked for me:

  1. I disabled Let’s Encrypt and HTTPS:
#- templates/web.ssl.template.yml

#- templates/web.letsencrypt.ssl.template.yml
  1. HAProxy now handles SSL certificates for Discourse
  2. I used this configuration in the /var/discourse/containers/app.yml file
run:
  - replace:
      filename: /etc/nginx/conf.d/discourse.conf
      from: "types {"
      to: |
        set_real_ip_from 192.168.1.8;   # HAProxy IP ADDRESS
        real_ip_header X-Forwarded-For;
        real_ip_recursive on;
        types {

and now I do have the public IPs in the Discourse admin interface:

@Ethsim2

Thanks again for your help. :grin: