Allow people to find you on Mastadon from your Ghost Pro domain

I wanted people to be able to find me on my me@jessehouwing.net email address without having to know the instance of Mastodon I'm on. And found it not to be too hard.

First, I grabbed my personal finger file from my Mastadon server (hachyderm.io):

GET https://hachyderm.io/.well-known/webfinger?resource=acct:jessehouwing@hachyderm.io

{
    "subject": "acct:jessehouwing@hachyderm.io",
    "aliases": [
        "https://hachyderm.io/@jessehouwing",
        "https://hachyderm.io/users/jessehouwing"
    ],
    "links": [
        {
            "rel": "http://webfinger.net/rel/profile-page",
            "type": "text/html",
            "href": "https://hachyderm.io/@jessehouwing"
        },
        {
            "rel": "self",
            "type": "application/activity+json",
            "href": "https://hachyderm.io/users/jessehouwing"
        },
        {
            "rel": "http://ostatus.org/schema/1.0/subscribe",
            "template": "https://hachyderm.io/authorize_interaction?uri={uri}"
        },
        {
            "rel": "http://webfinger.net/rel/avatar",
            "type": "image/png",
            "href": "https://media.hachyderm.io/accounts/avatars/109/383/708/737/874/047/original/9ccec929256a6fd7.png"
        }
    ]
}

I added it to the assets of my custom theme:

jessehouwingnl-Casper/assets/.well-known/webfinger at customized · jessehouwing/jessehouwingnl-Casper
The default personal blogging theme for Ghost. Contribute to jessehouwing/jessehouwingnl-Casper development by creating an account on GitHub.

Then added a redirect to my Ghost Redirects file:

[
    {
        "from": "^\\/(\\.well-known/webfinger.*)",
        "to": "/assets/$1",
        "permanent": true
    }
]

And that was it. You can now find me on mastadon with *@jessehouwing.net.

Leave a comment.