summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-11-08 22:37:17 -0500
committerJesse Luehrs <doy@tozt.net>2022-11-08 22:37:17 -0500
commit933cbffd420a12b1557e93079776c20010aa96da (patch)
treede6557add5a197f6d41224ea1369529473275416
parent7223530fc201f5d81cb791b72916cb278cd45841 (diff)
downloadpuppet-tozt-933cbffd420a12b1557e93079776c20010aa96da.tar.gz
puppet-tozt-933cbffd420a12b1557e93079776c20010aa96da.zip
add webfinger redirect
-rw-r--r--modules/tozt/files/nginx/doy-tls.conf6
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;