My assumption is that you should be able to discover Mastodon accounts by searching for email addresses, which should in turn query webfinger.
So for a domain that isn't hosting Mastodon, you can set up a webfinger server. Or you can just hand code some json files and serve them using nginx.
Rather than look into installing a webfinger server, I just initially want to serve up the json files directly from nginx.
- Set up a redirect under
example.com
(as suggested in RFC 7033)
location = /.well-known/host-meta {