fix: Split wildcard and root domains for ACME

This commit is contained in:
Inex Code 2024-09-07 00:14:20 +03:00
parent 30e4f0a2cc
commit aeeca9ce84
2 changed files with 1 additions and 2 deletions

View file

@ -33,7 +33,6 @@ in
certs = {
"${cfg.domain}" = {
domain = "*.${cfg.domain}";
extraDomainNames = [ "${cfg.domain}" ];
group = "acmereceivers";
dnsProvider = lib.strings.toLower cfg.dns.provider;
credentialsFile = acme-env-filepath;

View file

@ -21,7 +21,7 @@ in
'';
virtualHosts = {
"${domain}" = {
useACMEHost = domain;
enableACME = true;
forceSSL = true;
extraConfig = ''
add_header Strict-Transport-Security $hsts_header;