Did you add that stanza to your app.yml
? Those settings need to be in the NGINX that is inside the container. See also Set up Discourse on a server with existing Apache sites. That’s for Apache, but the part that goes in app.yml
is the same regardless of what is doing the reverse proxy.