Liberate nkagami.me domains from Cloudflare origin cert requirement

This commit is contained in:
Natsu Kagami 2023-09-03 20:51:52 +02:00
parent 2aa0ee2023
commit 6eb0b818f1
Signed by: nki
GPG key ID: 55A032EB38B49ADB
5 changed files with 13 additions and 4 deletions

View file

@ -45,6 +45,10 @@ with lib;
port = mkOption {
type = types.int;
};
noCloudflare = mkOption {
type = types.bool;
default = false;
};
allow_registration = mkOption {
type = types.bool;
default = false;
@ -145,7 +149,7 @@ with lib;
config.cloud.traefik.hosts = mkIf cfg.enable (
(lib.attrsets.mapAttrs'
(name: instance: lib.attrsets.nameValuePair "conduit-${name}" ({
inherit (instance) host port;
inherit (instance) host port noCloudflare;
}))
cfg.instances)
// (lib.attrsets.mapAttrs'