Setting up well-known/webfinger for mastodon/fediverse

Solved

Setting up well-known/webfinger for mastodon/fediverse

Piotr_Esden-Tem
Tourist
5 1 0

Hi everyone,

 

I am working on setting up a mastodon instance for our company. The shopify store resides on the root domain. To make things cleaner and not require our customers to search for our mastodon accounts on a subdomain, it would be useful to have .well-known/webfinger accessible from the TLD.

 

The best solution would be the ability to redirect the requests that are sent to https://mytld.com/.well-known/webfinger to https://social.mytld.com/.well-known/webfinger ... that is likely not currently possible in shopify. But if it is I would love to know how to set that up.

 

The other possibility is for me to copy the json containing all the users to a file in that directory in shopify itself. It is not ideal but would be a usable option as we will not be creating tons of new accounts. Just a few, for our store and our employees.

 

I would love to get some feedback how that can be accomplished as I am sure I am not the only shopify store working on providing an alternative to twitter, by hosting their own fediverse instance. 🙂

 

Edit: After upon further reading of the GoToSocial server documentation it turns out there is a second API endpoint that needs to be redirected: .well-known/nodeinfo You can read it all of it for yourself here: https://docs.gotosocial.org/en/latest/installation_guide/advanced/

 

Cheers,

Piotr Esden-Tempski

Accepted Solution (1)

Piotr_Esden-Tem
Tourist
5 1 0

This is an accepted solution.

Ok, so the solution to the problem are url redirects. Those can be found under "Online Store"->"Navigation"->"View URL Redirects". There you can create the necessary /.well-known/webfinger and /.well-known/nodeinfo to the correct url on the subdomain.

 

I am bit surprised that no-one bothered to reply here and help me out. But maybe if you are reading it looking for a solution this will help you. 🙂

 

See you in the fediverse! 🙂

View solution in original post

Reply 1 (1)

Piotr_Esden-Tem
Tourist
5 1 0

This is an accepted solution.

Ok, so the solution to the problem are url redirects. Those can be found under "Online Store"->"Navigation"->"View URL Redirects". There you can create the necessary /.well-known/webfinger and /.well-known/nodeinfo to the correct url on the subdomain.

 

I am bit surprised that no-one bothered to reply here and help me out. But maybe if you are reading it looking for a solution this will help you. 🙂

 

See you in the fediverse! 🙂