Help · Your Mygration server
Moving the panel to a new hostname
Changing the address staff browse to, with the Microsoft 365 apps, the server and workers at customer sites all moved over.
Last updated
The panel's hostname is in four places: DNS, the two Microsoft 365 apps in your MSP's Entra tenant, the server's settings, and the workers at customer sites. Change them in this order, and the old name keeps working until the new one does.
The examples move from migrate.brightpathit.example to mygration.brightpathit.example.
1. Point the new name at the server #
In your DNS, add the new hostname pointing at the server, as the old one does. With built-in HTTPS from Let's Encrypt, ports 80 and 443 must be open to it from the internet, as before.
2. Add the new addresses to the Microsoft 365 apps #
In your own Microsoft Entra admin center (your MSP's tenant), go to App registrations, then for each app open Authentication, and under Web add the new address beside the old one:
| App | Add |
|---|---|
| The panel app (Mygration Panel), for staff sign-in | https://mygration.brightpathit.example/signin-oidc and https://mygration.brightpathit.example/signout-callback-oidc |
| Mygration Migration Engine, for customer consent | https://mygration.brightpathit.example/auth/consent-callback |
Click Save on each. Keep the old addresses for now.
Important
Each address goes on its own app. Mixing them up gives AADSTS50011 at sign-in or consent.
3. Change the hostname on the server #
Edit the settings file:
sudo nano /opt/mygration/.envChange the
PANEL_HOSTNAME=line to the new name, withouthttps://:PANEL_HOSTNAME=mygration.brightpathit.exampleSave, then start Mygration again with it:
sudo mygration start
With built-in HTTPS, the server gets a certificate for the new name by itself. With your own reverse proxy, give the proxy the new hostname and its certificate.
Check it:
sudo mygration doctorUnder Name and HTTPS, the new name should resolve to this server and have a valid certificate.
4. Sign in and check #
- Open
https://mygration.brightpathit.exampleand sign in. If you sign in with Microsoft, this checks the panel app's new address. - On a customer's connection, click Check. Consent links you make from now on use the new address.
- Tell your staff the new address, and update bookmarks.
5. Move the workers at customer sites #
Each worker on another server has the panel's address in its command. On each of those servers, remove the container
and start it again with the new address in Worker__PanelUrl, and everything else as before:
docker rm -f mygration-worker
docker run -d --name mygration-worker --restart unless-stopped \
-e Worker__PanelUrl=https://mygration.brightpathit.example \
-e Worker__Key=mgw_... \
registry.mygration.cloud/mygration-worker:<panel version>
Workers → Overview shows each one reporting again within a minute or two.
6. Tidy up #
Once you've signed in on the new name, and a customer's admin has accepted a consent link made there, go back to Authentication on each app in Entra and remove the old addresses. Then remove the old name from DNS, if nothing else uses it.
Note
Status links you've already shared with customers carry the old address. If the old name stops working, make new ones from the customer's page (More → Share status).