Of course it wasn’t that easy. A little more testing on my part and using webfinger would have probably helped. Oh well.
location = /.well-known/webfinger { try_files $uri $uri/ /index.php?$args; } location = /.well-known/nodeinfo { try_files $uri $uri/ /index.php?$args; }
I had to add a little glue to my nginx configuration, otherwise queries were not routed to the right place.
Of course now, this is another live test after I have successfully followed my blog from main mastodon account, so… fingers crossed!
Edit: And now that I have added src code plugin, let’s see if this looks better.