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 = { certs = {
"${cfg.domain}" = { "${cfg.domain}" = {
domain = "*.${cfg.domain}"; domain = "*.${cfg.domain}";
extraDomainNames = [ "${cfg.domain}" ];
group = "acmereceivers"; group = "acmereceivers";
dnsProvider = lib.strings.toLower cfg.dns.provider; dnsProvider = lib.strings.toLower cfg.dns.provider;
credentialsFile = acme-env-filepath; credentialsFile = acme-env-filepath;

View file

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