diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-11-08 22:37:17 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-11-08 22:37:17 -0500 |
commit | 933cbffd420a12b1557e93079776c20010aa96da (patch) | |
tree | de6557add5a197f6d41224ea1369529473275416 /modules | |
parent | 7223530fc201f5d81cb791b72916cb278cd45841 (diff) | |
download | puppet-tozt-933cbffd420a12b1557e93079776c20010aa96da.tar.gz puppet-tozt-933cbffd420a12b1557e93079776c20010aa96da.zip |
add webfinger redirect
Diffstat (limited to 'modules')
-rw-r--r-- | modules/tozt/files/nginx/doy-tls.conf | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/tozt/files/nginx/doy-tls.conf b/modules/tozt/files/nginx/doy-tls.conf index ecea416..8ac2b1d 100644 --- a/modules/tozt/files/nginx/doy-tls.conf +++ b/modules/tozt/files/nginx/doy-tls.conf @@ -7,6 +7,12 @@ server { include ssl; + location /.well-known/webfinger { + if ($arg_resource ~* 'acct(:|%3A)doy(@|%40)tozt.net') { + return 301 https://recurse.social/.well-known/webfinger?resource=acc>t:doy@recurse.social; + } + } + location / { root /home/doy; try_files /site$uri /site$uri/index.html /public_html$uri =404; |