gfroerli / web

Web application for the water sensor API (gfrör.li), written in Elm.
https://gfrör.li
GNU Affero General Public License v3.0
3 stars 1 forks source link

Migrate API to new domain #37

Closed dbrgn closed 7 months ago

dbrgn commented 6 years ago

Use api.gfrör.li instead of the old Coredump domain.

Refs #33

rnestler commented 7 months ago

Use api.gfrör.li

Do the DNS entries for the new domain exist already?

dbrgn commented 7 months ago
danilo@c3po:~$ dig +short api.gfrör.li
danilo@c3po:~$

...no 🙂

To ensure compatibility, we'd need to think how we can handle the migration.

rnestler commented 7 months ago

To ensure compatibility, we'd need to think how we can handle the migration.

Have both point to the same API server for some time? Then temporary redirect, then permanent redirect, then remove the old entry.

dbrgn commented 7 months ago

Does Rails use some kind of domain validation, where the valid domains need to be added to the config?

I'll set up the new domain, then we'll see 🙂

dbrgn commented 7 months ago

Seems to work!

I'll try to update the relay to the new domain as well.

dbrgn commented 7 months ago

@rnestler https://git.coredump.ch/infrastructure/server/-/merge_requests/112

rnestler commented 7 months ago

Does Rails use some kind of domain validation, where the valid domains need to be added to the config?

Actually yes, but maybe we deactivated it?

dbrgn commented 7 months ago

Actually yes, but maybe we deactivated it?

I don't know anything about Rails, so you'll have to tell me 😂

dbrgn commented 7 months ago

Website is now updated. Still TO DO:

(And then, add a permanent redirect from the old to the new domain and look at logs. Once no requests come in for a few weeks to the old domain, we can stop serving it.)