Changing openBalena Domain

Hi All,

Wondering if anyone has had any experience changing the domain name of an openBalena server.

I think the process would be something like this:

  1. Stop openBalena containers.
  2. Generate certificates for new domain.
  3. Update config attributes:
  • OPENBALENA_ROOT_CA
  • OPENBALENA_ROOT_CRT
  • OPENBALENA_ROOT_KEY
  • OPENBALENA_VPN_CA
  • OPENBALENA_VPN_CA_CHAIN
  1. Update DNS to redirect old domains to new domains for:
    api.old-domain.com
    ssh.old-domain.com
    registry.old-domain.com
    s3.old-domain.com
    ssh.old-domain.com
    tunnel.old-domain.com
    vpn.old-domain.com
  2. Restart containers.

My main concern is will all of the old devices still successfully connect using the old domain? I do know I can update the domain in each devices config but am worried about any devices that are offline and I cannot change their domain before doing change over.

Is there anything else I am missing? I might setup a second openBalena server - connect a device and trial this before migrating my main server.

Cheers,
Chris

Hi

I don’t think it’s possible because there’s no way to tell the devices the domain has changed.
What I did, was setup another server with the new domain and then migrated the devices. (see balena join)