Hello, I’m the maintainer of the discourse debian/ubuntu packages (hosted at https://pkgr.io/apps/pkgr/discourse). I can get Discourse up and running easily, but can’t figure out how to properly set the discourse hostname.
Based on the official discourse docker documentation, I should be able to set a
DISCOURSE_HOSTNAME environment variable to something such as
www.example.com, restart everything, and be done with it.
However, it does not seem to work (while other env variables such as
DISCOURSE_DEVELOPER_EMAILS, and smtp stuff are correctly picked up), and I’m forced to set the
force_hostname setting in the admin settings, as per the unofficial how to install on heroku documentation (in docs/install-HEROKU.md – sorry, can’t post the full link as it seems I’m limited to two links only…).
What is the correct way to do this?
Also, I must be blind, but I can’t see where all those environment variables are picked up in the code. Any pointers?