this post was submitted on 08 Jul 2023
37 points (97.4% liked)

Selfhosted

39435 readers
5 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Is it possible to change lemmy's domain after I have already started it once and produced some content? I am thinking of moving to a subdomain but I'm not sure if it will go smoothly

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 14 points 1 year ago (4 children)

You can, but other servers will not recognize it as the same server.

There are however ways to run your server on a subdomain and make it appear as if it's still the original domain. Is that what you're looking for?

[–] [email protected] 3 points 1 year ago (1 children)

That might fit my needs. Could you explain in more details please?

[–] [email protected] 7 points 1 year ago

/well-known/webfinger. If you use a reverse proxy on your main domain (example.com), you have it forward traffic from example.com/well-known/webfinger to subdomain.example.com/well-known/webfinger

[–] [email protected] 2 points 1 year ago (1 children)

Is renaming the instance domain without reinstalling Lemmy related to changing the WebFinger query? It's the trick some instances use to have a different instance domain from their username domain, like @[email protected] while the instance is mastodon.domain.com.

[–] [email protected] 2 points 1 year ago

Yes, that was what I was referring to. However, this is assuming that Lemmy has properly implemented webfinger and doesn't store direct links (which I haven't checked).

Alternatively, you could proxy all requests with application/activity+json in the Accept or Content-type headers.

[–] [email protected] 1 points 1 year ago (1 children)

run your server on a subdomain and make it appear as if it's still the original domain.

Do you mean make it look like the top level domain? Cause if so, do you have a link I can read a little about? I'm thinking of deploying my own lemmy instance.

[–] [email protected] 2 points 1 year ago

It's possible by having the webfinger endpoints at the "root" while keeping the rest of Lemmy on a subdomain. The main thing that determines the domain in your username is webfinger.

No clue if Lemmy or kbin support this config though, but quite a bit of the microblog-only parts of fedi do, and it's a widely used thing.

[–] [email protected] -1 points 1 year ago* (last edited 1 year ago)