Changing settings (e.g. domain)

Hi all,

I’m currently in the progress of setting up a relatively stable setup of my openBalena instance. I’ve tested openBalena on a domain name that I don’t want to use for production. Now that I’ve registered the domain name that I want to use for openBalena, my first thought was: Redo the setup process, but with another -d domain. But, unfortunately, that didn’t work. The openBalena instance still uses the old domain certificates (I’ve added the -c parameter for ACME certificates). Obviously, the new domain has SSL errors.

I understand that changing a domain name isn’t something you do on a regular basis, and I also understand that the openBalena devices already registered be like: “What? Where did openBalena go?”, because of the domain changes. But I can reflash those devices, so that’s not a problem at the moment. Because there isn’t much documentation at this time, I can’t really figure out all configuration that takes place, thus I can’t figure out what goes wrong.

TL;DR
How do I change my domain name in openBalena, which then creates and uses the new ACME SSL certificates?

Thanks in advance!

Hello @bversluijs – the most straightforward way is to scrap the config folder and run quickstart again. You may also want to remove the associated volumes beforehand as well. These two (i.e. volumes and config folder) are the only places where state is stored in an opneBalena installation and removing them is equivalent to starting from scratch.

1 Like

Hi @dfunckt,

Thanks for explaining! I forgot about the volumes folder. I deleted the config folder, but not the volumes folder. Maybe this has something to do with the fact that my openBalena instance didn’t load the new certificates.

Thanks!

Hi, @dfunckt , i have some question. I already provide services use domain A. But now i have to use a new domain to replace. How can i smooth replacement? Maybe the main difficulty lies in the device how to update the new domain. How can i do?