flora-6: pub.solar webfinger should redirect to
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

mastodon, if the query parameter matches resource

See: https://docs.joinmastodon.org/spec/webfinger/
and: https://docs.joinmastodon.org/admin/config/#web_domain
This commit is contained in:
teutat3s 2023-04-21 15:12:59 +02:00
parent af9b528cb9
commit 6123b4470a
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -36,8 +36,12 @@
redir https://mastodon.pub.solar{uri}
}
# Tailscale OIDC requirement
# Tailscale OIDC webfinger requirement plus Mastodon webfinger redirect
handle /.well-known/webfinger {
# Redirect requests that match /.well-known/webfinger?resource=* to Mastodon
handle query resource=* {
redir https://mastodon.pub.solar{uri}
}
respond 200 {
body `{
"subject": "acct:admins@pub.solar",