From 572cb127feab945be51609c75128ba9100deef9f Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 12 May 2024 19:06:15 +0200 Subject: feat(system/services/nginx): Add the GPG WKD --- system/services/nginx/hosts.nix | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'system/services/nginx/hosts.nix') diff --git a/system/services/nginx/hosts.nix b/system/services/nginx/hosts.nix index 5d27af7..0f6c09e 100644 --- a/system/services/nginx/hosts.nix +++ b/system/services/nginx/hosts.nix @@ -1,4 +1,14 @@ -{...}: [ +{...}: let + extraWkdSettings = { + locations."/.well-known/openpgpkey/hu/".extraConfig = '' + default_type application/octet-stream; + + # Came from: https://www.uriports.com/blog/setting-up-openpgp-web-key-directory/ + # No idea if it is actually necessary + # add_header Access-Control-Allow-Origin * always; + ''; + }; +in [ { domain = "vhack.eu"; root = "/etc/nginx/websites/vhack.eu"; @@ -9,4 +19,18 @@ root = "/etc/nginx/websites/b-peetz.de"; url = "https://codeberg.org/bpeetz/b-peetz.de.git"; } + + # WKD + { + domain = "openpgpkey.b-peetz.de"; + root = "/etc/nginx/websites/openpgpkey.b-peetz.de"; + url = "https://codeberg.org/vhack.eu/gpg_wkd.git"; + extraSettings = extraWkdSettings; + } + { + domain = "openpgpkey.vhack.eu"; + root = "/etc/nginx/websites/openpgpkey.vhack.eu"; + url = "https://codeberg.org/vhack.eu/gpg_wkd.git"; + extraSettings = extraWkdSettings; + } ] -- cgit 1.4.1