use enableACME for all virtualHosts

This commit is contained in:
Alexander Tomokhov
2023-12-19 16:38:46 +04:00
parent 0c4d57c33d
commit 46366702bc
10 changed files with 12 additions and 30 deletions

View File

@@ -25,15 +25,8 @@ in
dnsPropagationCheck =
! (lib.elem cfg.dns.provider dnsPropagationCheckExceptions);
reloadServices = [ "nginx" ];
};
certs = lib.mkForce {
"${cfg.domain}" = {
domain = "*.${cfg.domain}";
extraDomainNames = [ "${cfg.domain}" ];
group = "acmereceivers";
dnsProvider = lib.strings.toLower cfg.dns.provider;
credentialsFile = acme-env-filepath;
};
dnsProvider = lib.strings.toLower cfg.dns.provider;
credentialsFile = acme-env-filepath;
};
};
systemd.services.acme-secrets = {