It goes in the app.yml
. It’s not handled by Discourse, but by NGINX in the container and it doesn’t have access to the Discourse database.
It goes in the ENV section
env:
DISCOURSE_HOSTNAME_ALIASES: domain.com,other.domain.com
You’d include only additional domains that you would like for people to be able to link to and be redirected to your site’s actual host name.