From ac2ee4b50c0da6a5aa685a1df24ea724206cc184 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Thu, 10 Oct 2019 23:50:17 +0200 Subject: [PATCH] service wkd PGP --- systems/LoutreOS/services.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/systems/LoutreOS/services.nix b/systems/LoutreOS/services.nix index 8951e9d03..1ef512f24 100644 --- a/systems/LoutreOS/services.nix +++ b/systems/LoutreOS/services.nix @@ -11,6 +11,7 @@ let musique_port = 52349; factorio_port = 52351; airsonic_port = 4040; + wkd_port = 52352; jellyfin_backend = '' http-request set-header X-Forwarded-Port %[dst_port] @@ -91,6 +92,7 @@ in "ci.${domaine}" = { ip = "127.0.0.1"; port = 52350; auth = false; }; "factorio.${domaine}" = { ip = "127.0.0.1"; port = factorio_port; auth = false; }; "airsonic.${domaine}" = { ip = "127.0.0.1"; port = airsonic_port; auth = false; }; + "${domaine}" = { ip = "127.0.0.1"; port = wkd_port; auth = false; }; }; }; @@ -242,6 +244,15 @@ in listen = [ { addr = "127.0.0.1"; port = factorio_port; } ]; locations = { "/" = { root = "/var/www/factorio"; }; }; }; + "wkd" = { + listen = [ { addr = "127.0.0.1"; port = wkd_port; } ]; + locations = { "/.well-known/openpgpkey/" = { + alias = "/var/lib/gnupg/wks/nyanlout.re"; + extraConfig = '' + add_header Access-Control-Allow-Origin * always; + ''; + }; }; + }; }; };