this post was submitted on 08 Jul 2023
18 points (95.0% liked)

Lemmy Support

4628 readers
6 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

Hey everyone, I am looking to change the domain name of my self hosted instance and had a question.

I used the Ansible installation instructions originally and am now curious if it would be as easy as editing the “hosts” file and the “config.hjson” file before running the playbook again?

Will this overwrite the necessary configurations and grab a new SSL while keeping the content of the instance intact?

My main concern is breaking federation.

Thanks for any insight.

top 5 comments
sorted by: hot top controversial new old

Bump for this, I'd like to change mine but I think it'd ruin everyone who subscribes to my instance. Also worry about potential conflicts in other people's databases with duplicated posts or communities

[–] Max_P@lemmy.max-p.me 4 points 1 year ago (2 children)

My guess is that it'll break federation pretty bad: a lot of things in Lemmy shares URLs for where to send ActivityPub notices: everything your users subscribed to, people sending DMs to your users as the username will change, remote instances subscribed to your local communities as well most likely.

I don't know if Lemmy honors 301/308 redirects, but honoring them and saving them for future use would probably be a nice feature to have, but probably pretty low on the priority list given the scalability issues being worked on at the moment.

[–] liori@lemm.ee 1 points 1 year ago* (last edited 1 year ago)

I'm surprised federation isn't based on asymmetric cryptography. Let the public/private keys identify instances, as opposed to domains that risk being blocked by governments or bought by malicious third parties if the instance owner forgets to prolong it.

With that, implementing a change in domain names would be simple.

[–] borlax@lemmy.borlax.com 1 points 1 year ago

Yeah, that was my concern as well, figured this post could spark a discussion and maybe someone would have a solution or at least some extra insight. I know there is a LOT going on with development right now, so I don't expect a priority here, especially because they are definitely working within the confines of ActivityPub functionality when it comes to federation. Thanks for your input!

[–] PartyCat@lemmy.best 2 points 1 year ago

It's more complicated than that, and it will completely break federation for all instances that have already federated with yours.
https://join-lemmy.org/docs/administration/backup_and_restore.html#changing-your-domain-name

load more comments
view more: next ›