I’ve recently installed an discourse on Nginx. It works wonderfully, except for one issue: the activation emails. For whatever reason, the links in them are www.example.com, and the email domain is unconfigured.discourse.org.
RAILS_ENV=production bundle exec script/discourse remap www.example.com newhostname
and it made no difference.
In my discourse.conf I have set hostname and smtp_domain. All the other links on the site are correct. For the life of me, I can’t figure what I need to set to get emails working right.