From 5010935ae3ace410ede0a0d2bf738e44311dc2cc Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Fri, 2 Jun 2023 10:25:19 +0200 Subject: [PATCH] heimdall: Add WebFinger placeholder --- machines/heimdall/configuration.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/machines/heimdall/configuration.nix b/machines/heimdall/configuration.nix index 221d006..cf5423c 100644 --- a/machines/heimdall/configuration.nix +++ b/machines/heimdall/configuration.nix @@ -85,6 +85,23 @@ }; services.tailscale.enable = true; + services.caddy = { + virtualHosts = { + "datarift.nl" = { + extraConfig = '' + @webfinger-erwin { + path /.well-known/webfinger + query resource=acct:erwin@datarift.nl + } + respond @webfinger-erwin 200 { + body `{"subject":"acct:erwin@datarift.nl","links":[{"rel":"http://openid.net/specs/connect/1.0/issuer","href":"https://id.datarift.nl/realms/datarift"}]}` + close + } + ''; + }; + }; + }; + security.apparmor = { enable = true; killUnconfinedConfinables = true;