1
0
Fork 0

Provide GPG key using web key directory

This commit is contained in:
clerie 2022-04-15 13:58:07 +02:00
parent 5ba4163f95
commit 031bd72e17
1 changed files with 15 additions and 1 deletions

View File

@ -16,7 +16,21 @@
root = fetchGit {
url = "https://git.clerie.de/clerie/clerie.de.git";
ref = "main";
rev = "7fbb8042100fde4a8524eec656519eb8b48ae68a";
rev = "23e7b06dc15a8dcc320b2db9508e2192d33236cb";
};
locations."~ ^/.well-known/openpgpkey/hu/[a-z0-9]+/?$" = {
extraConfig = ''
default_type application/octet-stream;
add_header Access-Control-Allow-Origin * always;
try_files /gpg/clerie@clerie.de =404;
'';
};
locations."= /.well-known/openpgpkey/policy" = {
extraConfig = ''
default_type application/octet-stream;
add_header Access-Control-Allow-Origin * always;
'';
return = "200 ''";
};
};
};