From 2621bd671ffdfc93b54321777d15fdb35bd079ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 2 Dec 2022 02:11:16 +0100 Subject: [PATCH] web: add mastodon webfinger --- hosts/c3d2-web/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/c3d2-web/default.nix b/hosts/c3d2-web/default.nix index 61cdbb54..ae29141b 100644 --- a/hosts/c3d2-web/default.nix +++ b/hosts/c3d2-web/default.nix @@ -48,6 +48,9 @@ in index portal.html index.html; ''; locations = { + # Mastodon + "/.well-known/webfinger".return = "301 https://c3d2.social$request_uri"; + # SpaceAPI "/status.png".proxyPass = "http://[${config.c3d2.hosts.spaceapi.ip6}]:3000/status.png"; "/spaceapi.json".proxyPass = "http://[${config.c3d2.hosts.spaceapi.ip6}]:3000/spaceapi.json";