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/nix-sync/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'system/services/nix-sync') diff --git a/system/services/nix-sync/default.nix b/system/services/nix-sync/default.nix index 9826870..5ee31dd 100644 --- a/system/services/nix-sync/default.nix +++ b/system/services/nix-sync/default.nix @@ -185,6 +185,24 @@ ''; }; + extraSettings = lib.mkOption { + type = lib.types.attrsOf lib.types.anything; + example = lib.literalExpression '' + { + locations."/.well-known/openpgpkey/hu/" = { + extraConfig = \'\' + default_type application/octet-stream; + + add_header Access-Control-Allow-Origin * always; + \'\'; + }; + } + ''; + description = '' + Extra config to add the the nginx virtual host. + ''; + }; + interval = lib.mkOption { type = lib.types.int; default = 500; -- cgit 1.4.1