@petrichor it's a bit fiddly but it's doable, @f0x does it for pixie.town. Iirc it's essentially about forwarding webfinger requests from the top level domain to the relevant subdomain running mastodon

mastodon config, code snippets 

@dumpsterqueer @petrichor yeah, it works fine:

required mastodon config:
LOCAL_DOMAIN=pixie.town
WEB_DOMAIN=social.pixie.town

nginx config for top-level domain:

location = /.well-known/host-meta {
return 301 social.pixie.town$request_uri;
}

location = /.well-known/webfinger {
return 301 social.pixie.town$request_uri;
}

subdomain that hosts web just has the default mastodon nginx config, no changes neccessary

Sign in to participate in the conversation
Pixietown

Small server part of the pixie.town infrastructure. Registration is closed.