heimdall: Add WebFinger placeholder

This commit is contained in:
Erwin Boskma 2023-06-02 10:25:19 +02:00
parent d6208783c6
commit 5010935ae3
Signed by: erwin
SSH key fingerprint: SHA256:9LmFDe1C6jSrEyqxxvX8NtJBmcbB105XoqyUZF092bg

View file

@ -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;