nginx config for wkd #31

Merged
astro merged 5 commits from nginx-wkd into master 2022-05-05 21:28:18 +02:00
1 changed files with 10 additions and 1 deletions

View File

@ -35,7 +35,7 @@ in
default = true;
serverAliases = [
"c3d2.de"
"c3dd.de" "www.c3dd.de"
"c3dd.de" "www.c3dd.de" "openpgpkey.c3d2.de"
Review

openpgpkey doesnt resolve

openpgpkey doesnt resolve
"cccdd.de" "www.cccdd.de"
"dresden.ccc.de" "www.dresden.ccc.de"
"netzbiotop.org" "www.netzbiotop.org"
@ -50,6 +50,15 @@ in
# 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";
# WKD: Web Key Directory for PGP Keys
"/openpgp" = {
extraConfig = ''
autoindex off;
default_type "application/octet-stream";
add_header Access-Control-Allow-Origin * always;
Review

test (via https://metacode.biz/openpgp/web-key-directory) fails:

Access-Control-Allow-Origin: * header is missing

test (via https://metacode.biz/openpgp/web-key-directory) fails: > `Access-Control-Allow-Origin: *` header is missing
'';
};
};
};