Mastodon: Redirect web-finger

This commit is contained in:
Benoit 2024-10-11 21:21:23 +09:00
parent cc3600733a
commit 1c2684b4be
Signed by: Benoit
SSH key fingerprint: SHA256:kFsX94Kq6z/6CY0dX+7/FpAeJC0QlMhJVY+B7NYrOmA

View file

@ -288,6 +288,10 @@ frontend frontend_default
# Redirect www to non-www domains
http-request redirect prefix https://%[hdr(host),regsub(^www\.,,i)] code 301 if { hdr_beg(host) -i www. }
# Redirect /.well-known/webfinger to mastodon.benoit.jp.net
acl webfinger_request path_beg /.well-known/webfinger
http-request redirect location https://mastodon.benoit.jp.net%[capture.req.uri] if webfinger_request
acl letsencrypt path_beg /.well-known/acme-challenge/
acl laminar hdr(host) -i laminar.benoit.jp.net