From f51a4b7aaf50f5879e61008d963ad0b0c22866f6 Mon Sep 17 00:00:00 2001 From: vv01f Date: Mon, 25 Apr 2022 10:52:00 +0200 Subject: [PATCH] add mime and accept header for wkd --- hosts/containers/c3d2-web/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/containers/c3d2-web/default.nix b/hosts/containers/c3d2-web/default.nix index 151587e7..062d6b7c 100644 --- a/hosts/containers/c3d2-web/default.nix +++ b/hosts/containers/c3d2-web/default.nix @@ -51,6 +51,13 @@ in "/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 + location ^~ /.well-known/openpgpkey { + #location /.well-known/openpgpkey/hu/ { + autoindex off; + default_type "application/octet-stream"; + add_header Access-Control-Allow-Origin * always; + } }; # datenspuren