From 256646332fb3709a36fc063ecfbcc90254299e3a Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Tue, 4 Apr 2023 14:51:46 +0200 Subject: [PATCH] Add webfinger-capabilities to caddy for msrg.cc --- caddy/config/conf.002.d/msrg.cc.conf | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/caddy/config/conf.002.d/msrg.cc.conf b/caddy/config/conf.002.d/msrg.cc.conf index 90be0c5..be6707b 100644 --- a/caddy/config/conf.002.d/msrg.cc.conf +++ b/caddy/config/conf.002.d/msrg.cc.conf @@ -2,8 +2,19 @@ msrg.cc { import default header /.well-known/* Access-Control-Allow-Origin * - rewrite * /function/webpage-msrg-cc{uri} - reverse_proxy https://faas.serguzim.me { - header_up Host {http.reverse_proxy.upstream.hostport} + handle /.well-known/webfinger { + map {query.resource} {user} { + acct:tobias@msrg.cc serguzim + acct:serguzim@msrg.cc serguzim + acct:test@msrg.cc test + } + redir * /.well-known/webfinger/{user}.json + } + + handle { + rewrite * /function/webpage-msrg-cc{uri} + reverse_proxy https://faas.serguzim.me { + header_up Host {http.reverse_proxy.upstream.hostport} + } } }