Switch MUC domain to kosmos.chat #99
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We were finally able to register the domain
kosmos.chat. So we can use it as MUC domain now.And perhaps we should also deploy a nice static page to it, explaining things to users that end up on it. Or at least a redirect to a wiki page I guess.
I was able to try this in a VM and found a way to migrate the room data (options and affiliations) to the new host:
We don't have so many rooms for now, so I think using commands like these after the migration to invite users to the rooms they were in will be manageable:
https://docs.ejabberd.im/admin/ejabberdctl/muc-admin/#invite-several-users-to-a-muc-room
I have set up a DNS entry for kosmos.chat leading to andromeda's IP.
I think we can do the migration tomorrow, what do you think?
Sounds good to me.
I have added the kosmos.chat domain to the Let's Encrypt cert, so there should not be anything to do for TLS for the migration:
Migration checklist:
/opt/ejabberd/conf/ejabberd.yml, change line 271 fromhost: "chat.@HOST@"tohost: "kosmos.chat"sudo systemctl disable ejabberd.serviceto avoid systemd restarting the servicesudo /opt/ejabberd-19.02/bin/ejabberdctl stop_kindly 120 "The server will stop in 2 minutes to switch the rooms to the kosmos.chat domain."sudo systemctl enable ejabberd.service; sudo systemctl start ejabberd.serviceto start the service again[..]
$ sudo su - ejabberd
$ psql
ejabberd=> update archive set username = 'test@kosmos.chat' where username='test@chat.kosmos.org';`
Not sure where the invitation lists are from, but they're definitely not complete. Also, this is a public repo. Please don't post JIDs to public repos. Especially not of private rooms (and also in public rooms, they're only visible to mods by default).
Update: I edited your comment to remove the JIDs.
Migration is all done.
I think we need a notice that actually explains to users why their chat rooms are all inactive and how to rejoin. Invitations aren't synced across devices. I had to manually re-add all rooms on my desktop for example.
Doing this manually.