I’ve installed an discrouse on an digitalocean droplet and setup email with mailgun.
Everything works well.
But new users get an email with an wrong baseurl.
the domain extension should be .nl for my installation but it says .com
Can somebody point me out how to change this?
I’m quit new with linux so a stepguide would be great.
My intention is to test discourse for a couple of months in this way and upgrade to an paid account after that.
Kind regards!
Jaya
jomaxro
(Joshua Rosenfeld)
14 Novembre 2017, 1:58pm
2
Check site settings. What is the value of notification email
?
Hi Joshua,
The notification email is this “postmaster@netwerk.highimpactteaching.nl”
Check the email I’m getting:
it’s from a .com
but the sender is .nl
and the baseurl is wrong
jomaxro
(Joshua Rosenfeld)
14 Novembre 2017, 2:28pm
4
Ah! The email address does correctly use .nl
, it’s the site domain that is incorrect.
Let’s check your app.yml
:
SSH into your server, logging in if requested.
Type cd /var/discourse
followed by Enter
Type sudo nano containers/app.yml
followed by Enter
Using the arrow keys, navigate down in the file until you find DISCOURSE_HOSTNAME:
- check the value there.
If it’s incorrect (using com
not nl
), update it, still using the keyboard only.
After updating it, exit the file by typing Ctrl + x , save by typing y
, then hit Enter to keep the same file name.
Finally, run sudo ./launcher rebuild app
to update your site with the changed hostname.
5 Mi Piace
thanks @jomaxro you are my hero today!
It’s pretty straight forward these steps to fix a simple thing
1 Mi Piace
pfaffman
(Jay Pfaffman)
14 Novembre 2017, 3:01pm
6
Those who want to avoid dirtying their hands with a text editor can just run disourse-setup again. It’ll stop the running discourse, re-read the settings using current settings as defaults, and rebuild.
6 Mi Piace
Yeah I wouldn’t recommend this complex set of steps, over “re-run the setup script”.
jomaxro
(Joshua Rosenfeld)
15 Novembre 2017, 1:11am
8
I need to remember that! I’m too “old school” - I keep recommending manual edits and site setting searches instead of the setup script and the wizard .
4 Mi Piace
pfaffman
(Jay Pfaffman)
15 Novembre 2017, 4:13am
9
I totally get it. Had I not spent a bunch of time writing discourse-setup, I’d tell people to use vim
the way God intended.
And, your answer worked, so there’s that.
3 Mi Piace