I was forced to change my email password and desperately searched for where to put the new smtp_password in the admin panel.
I finally understood (here) that it was necessary to go through a modification of a file (yaml?). I have SSH access, but I am not at all comfortable with it. Could someone give me a link or complete explanations so that I can manage it: the command to edit the file to modify, where to put the smtp_password (should it be encoded?), save the file? restart Discord?
Thanks in advance.
Hi there, all you need to do is SSH in, and just do this:
nano containers/app.yml
That will open up the text editor to change the SMTP details.
Then, you can run:
cd /var/discourse
./launcher destroy app
./launcher start app
for the changes to take effect.
A simpler way would be to run ./discourse-setup again, and fill out the details again.
Thank you very much for this fast answer.
If I run ./discourse-setup All my settings will be destroyed ?
No, I don’t believe it does. I would suggest the first option, if you have more things to edit.
.\discourse-setup will likely not work, use .\launcher rebuild app after CTRL+x in nano containers/app.yml
Thank you all for the quick replies. I’m summarizing [and updating with subsequent info] for beginners like me:
-
Back up the database
-
Connect via SSH
-
Edit the file containing the password
sudo nano /var/discourse/containers/app.yml -
Find the line containing the password
DISCOURSE_SMTP_PASSWORD: “your_smtp_password” -
Enter the new password in plain text (deleting the old one)
-
Save the new file: Ctrl+X, then confirm O (yes) or Y (yes), then Enter
-
Rebuild (this may take time)
cd /var/discourse
./launcher rebuild app -
If only SMTP details were modified, you can limit yourself to
cd /var/discourse
./launcher destroy app
./launcher start app
for the changes to take effect.
i would recommend backing up the database before (and after) rebuild, but you probably did that before logging in via SSH
i like that you’ve included instructions for how to use the nano text editor
Do I have to rebuild? Rebuilding is too slow ![]()
If you change only the SMTP details, you can do this:
Running discourse-setup is the easiest way for a novice. It will do a rebuild automatically (unless you control-c before it does).
Editing with nano (or vim) and destroy/start is the fastest way, though if you have upgraded with docker_manager from the ux it’ll undo those changes and you might need to rebuild anyway.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.