12

Use your domain for the Mastodon account without hosting an instance

 2 years ago
source link: https://pawelgrzybek.com/use-your-domain-for-the-mastodon-account-without-hosting-an-instance/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Use your domain for the Mastodon account without hosting an instance

Use your domain for the Mastodon account without hosting an instance

Published: 2023.02.10 · 1 minutes read

Look at this trick! You can access my Mastodon account via @[email protected] and @[email protected], even though I don’t host my own instance.

My Mastodon profile is searchable via my own domain and instance’s domain
  1. On your server, create a file /.well-known/webfinger. In my case it is https://pawelgrzybek.com/.well-known/webfinger.
  2. Copy/pasta 🍝 content of ${INSTANCE_ORIGIN}/.well-known/webfinger?resource=acct:${YOUR_USERNAME}@${INSTANCE_HOST}. In my case it is https://mastodon.social/.well-known/webfinger?resource=acct:[email protected].
  3. Job done! Share with the rest of the world!

I know fuck all about the Webfinger protocol. Full credit for this magic goes to Alex Guyot. Have a fab weekend y’all 😙

Leave a comment#

Name:
Website (optional):
GitHub (optional):
Comment:

👆 you can use Markdown here

Save my data for the next time I comment

© 2023 Copyright Pawel Grzybek. All rights reserved.
This site is built with Hugo and hosted on Netlify . The source code is hosted on GitHub.


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK