From b3670610b191fd8ed488c41f5a3e91e2743c730b Mon Sep 17 00:00:00 2001 From: revol-xut Date: Thu, 28 Apr 2022 13:52:58 +0200 Subject: [PATCH] moved nginx config to the right place --- hosts/containers/c3d2-web/default.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/hosts/containers/c3d2-web/default.nix b/hosts/containers/c3d2-web/default.nix index aa54730f..2b8ead0b 100644 --- a/hosts/containers/c3d2-web/default.nix +++ b/hosts/containers/c3d2-web/default.nix @@ -50,14 +50,16 @@ 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; + ''; + }; }; - # 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