diff options
author | Naïm Favier <n@monade.li> | 2020-11-29 04:28:42 +0100 |
---|---|---|
committer | lewo <lewo@abesis.fr> | 2020-11-30 19:49:48 +0000 |
commit | de84ba1aeb2d2aee4671c6e4ab4f7ea9818d392c (patch) | |
tree | 18eca4616377307ae13e8468d82c8056999f209e | |
parent | bee80564d8b7e8ad793755de17df0b0548e3d01b (diff) |
Do not hardcode paths to acme certificates
-rw-r--r-- | mail-server/common.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mail-server/common.nix b/mail-server/common.nix index b20e4c7..2a264a7 100644 --- a/mail-server/common.nix +++ b/mail-server/common.nix @@ -26,7 +26,7 @@ in else if cfg.certificateScheme == 2 then "${cfg.certificateDirectory}/cert-${cfg.fqdn}.pem" else if cfg.certificateScheme == 3 - then "/var/lib/acme/${cfg.fqdn}/fullchain.pem" + then "${config.security.acme.certs.${cfg.fqdn}.directory}/fullchain.pem" else throw "Error: Certificate Scheme must be in { 1, 2, 3 }"; # key :: PATH @@ -35,7 +35,7 @@ in else if cfg.certificateScheme == 2 then "${cfg.certificateDirectory}/key-${cfg.fqdn}.pem" else if cfg.certificateScheme == 3 - then "/var/lib/acme/${cfg.fqdn}/key.pem" + then "${config.security.acme.certs.${cfg.fqdn}.directory}/key.pem" else throw "Error: Certificate Scheme must be in { 1, 2, 3 }"; passwordFiles = let |