Forem Creators and Builders

Varhal
Varhal

Posted on

Change domain after install Forem on digitalocean

Hey. Installed Forem on digitalocean, everything works fine. I installed it on a test domain to test and understand how it works.

How can I change the Forem domain to another after all the settings? And how can I generate an ssl certificate for a new domain?

Thank you!

Discussion (9)

Collapse
ellativity profile image
Ella Ang (she/her/elle)

Hey @varhal - nice one on getting your Forem installed and working fine!

When you say you installed it on a test domain, do you also mean that you set that domain as forem_domain_name in your inventory/forem/setup.yml?

Collapse
varhal profile image
Varhal Author

I'll try to do that, thank you

Collapse
ellativity profile image
Ella Ang (she/her/elle)

Oh, it was more of a question than an answer!

I was asking whether you already set the test domain as your forem_domain_name in your setup.yml file during the self-host process.

Thread Thread
varhal profile image
Varhal Author

Yes, i set text domain as forem_domain_name in file inventory/forem/setup.yml

Thread Thread
ellativity profile image
Ella Ang (she/her/elle)

Thanks for clarifying!

If you want to change your domain from the test domain to your permanent domain, you need to change the forem_domain_name in your setup.yml file, and then return to the Self-Host installation instructions beginning at Step 7 where you'll rerun the Playbook for DigitalOcean install.

Don't forget to set up the DNS for your new domain, and restart the Forem Traefik service (sudo systemctl restart forem-traefik.service), too!

Thread Thread
varhal profile image
Varhal Author • Edited

If i restart the playbook, a new image will be created. After creating a new image, settings, content and this data will not be lost?

Thread Thread
ellativity profile image
Ella Ang (she/her/elle) • Edited

If you want to keep your Test Forem, but turn it into your Real Forem? Then you may want to follow these directions to make the server-side change.

If you're not comfortable making those changes to the server then your best bet is to create a new Forem by running the playbook again.

Thread Thread
varhal profile image
Varhal Author

After entering the commands from the tutorial, an input field is displayed on the command line, should I write a new domain here? If so, in what format?

Alt text of image

Collapse
varhal profile image
Varhal Author

The question is open!