Switch MUC domain to kosmos.chat #99
Closed
opened 2019-09-18 09:44:29 +00:00 by raucao
·
8 comments
No Branch/Tag Specified
Labels
Clear labels
monitoring
bug
design
dev environment
docs
duplicate
enhancement
feature
good first issue
idea
invalid
kredits-1
kredits-2
kredits-3
on hold
ops
question
security
ui/ux
wontfix
service
discourse
Kosmos Community Forums
Infrastructure metrics, alerts, notifications, etc.
service
accounts
Kosmos Accounts
service
drone-ci
Kosmos Drone CI
service
email
mail.kosmos.org
service
garage
S3-compatible object storage
service
gitea
Kosmos Gitea
service
ipfs
Kosmos IPFS
service
lightning
Lightning address, lndhub, etc.
service
mastodon
kosmos.social
service
nostr
Relays, Blossom server, etc.
service
postgres
Database cluster
service
remotestorage
Portable data storage for the Web
service
wiki
Kosmos Wiki
service
xmpp
Kosmos Chat
Something is not working
Graphic/visual design
Config, builds, CI, deployment, etc.
Documentation
This issue or pull request already exists
Improving existing functionality
New functionality
Dive in, and start contributing
Something to consider
Not a bug
Small contribution
Medium contribution
Large contribution
Currently not actionable
Manual IT ops activities
Looking for an answer
release
major
release
minor
release
patch
All your base are belong to us
User interface, process design, etc.
This won't be fixed
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kosmos/chef#99
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.