chore: use nix for JSON

Signed-off-by: jolheiser <john.olheiser@gmail.com>
teamcity
jolheiser 2023-09-21 12:32:59 -05:00
parent 5581165336
commit d19006ea44
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
1 changed files with 10 additions and 1 deletions

View File

@ -7,7 +7,16 @@ in {
"jolheiser.com" = {
extraConfig = ''
handle_path /.well-known/webfinger {
respond "{\"subject\":\"acct:john@jolheiser.com\",\"links\":[{\"rel\":\"http://openid.net/specs/connect/1.0/issuer\",\"href\":\"https://git.jojodev.com/\"}]}"
header Content-Type application/jrd+json
respond ${builtins.toJSON {
subject = "acct:john@jolheiser.com";
links = [
{
rel = "http://openid.net/specs/connect/1.0/issuer";
href = "https://git.jojodev.com/";
}
];
}}
}
handle_path /bennet* {
root * /srv/bennet/src