Revert "Revert "Revert "add wildcard ACME certificate"""

This reverts commit 4faf8e7dda.
This commit is contained in:
Alexander Tomokhov
2023-12-20 17:36:06 +04:00
parent 3a66da49e1
commit dcaf96c773
9 changed files with 21 additions and 26 deletions

View File

@@ -27,18 +27,13 @@ in
reloadServices = [ "nginx" ];
};
certs = {
"wildcard-${cfg.domain}" = {
"${cfg.domain}" = {
domain = "*.${cfg.domain}";
extraDomainNames = [ "${cfg.domain}" ];
group = "acmereceivers";
dnsProvider = lib.strings.toLower cfg.dns.provider;
credentialsFile = acme-env-filepath;
};
"${cfg.domain}" = {
domain = cfg.domain;
group = "acmereceivers";
webroot = "/var/lib/acme/acme-challenge";
};
};
};
systemd.services.acme-secrets = {