flora-6: pub.solar webfinger should redirect to mastodon, too #222

Merged
b12f merged 1 commit from infra-fix-mastodon-webfinger into infra 2023-04-24 10:53:20 +00:00
Showing only changes of commit a6970708ad - Show all commits

View file

@ -25,6 +25,9 @@
output discard output discard
''; '';
extraConfig = '' extraConfig = ''
# Named matcher, used below for Mastodon webfinger
@query query resource=*
# PubSolarOS images # PubSolarOS images
handle /os/download/* { handle /os/download/* {
root * /data/srv/www root * /data/srv/www
@ -36,8 +39,12 @@
redir https://mastodon.pub.solar{uri} redir https://mastodon.pub.solar{uri}
} }
# Tailscale OIDC requirement # Tailscale OIDC webfinger requirement plus Mastodon webfinger redirect
handle /.well-known/webfinger { handle /.well-known/webfinger {
# Redirect requests that match /.well-known/webfinger?resource=* to Mastodon
handle @query {
redir https://mastodon.pub.solar{uri}
}
respond 200 { respond 200 {
body `{ body `{
"subject": "acct:admins@pub.solar", "subject": "acct:admins@pub.solar",