hn.today

Mastodon on your own domain without hosting a server

blog.maartenballiauw.be4 points0 comments
Screenshot of Mastodon on your own domain without hosting a server

Explains how to give yourself a Mastodon handle on a personal domain without running or hosting a Mastodon server by implementing WebFinger on that domain. Discovery in ActivityPub-based networks relies on WebFinger queries to /.well-known/webfinger?resource=acct:user@server. The procedure is to request the WebFinger JSON for your existing Mastodon account (which lists subject, aliases, a profile-page link and an ActivityPub "self" actor URL), save that JSON, and serve it from https://yourdomain/.well-known/webfinger. Once served, searching for @user@yourdomain resolves to your real account on the external instance, so the domain acts as a persistent, discoverable address that can forward people to whichever instance you use.

Notes cover practical limitations and variations: this simple copy-serve approach behaves like a catch-all unless you add logic to selectively respond, and it differs from a split-domain self-hosted setup (LOCAL_DOMAIN vs WEB_DOMAIN) that requires redirects and CORS between domain and instance. Community tips include using proxies (Cloudflare) or static-site hacks (Jekyll) to host the WebFinger file, and using tools like Twitodon, Fedifinder or Debirdify to map Twitter accounts to Mastodon. Also observed: some instances only return the custom-alias result when the searcher is logged into that instance.

Read on blog.maartenballiauw.be0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Other

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.