fix: Reloading nginx after ACME

This commit is contained in:
Inex Code 2023-06-14 19:06:58 +03:00
parent 8006f83257
commit 60dd766846
2 changed files with 1 additions and 5 deletions

View file

@ -12,6 +12,7 @@ in
email = "${cfg.username}@${cfg.domain}"; email = "${cfg.username}@${cfg.domain}";
server = if cfg.dns.useStagingACME then "https://acme-staging-v02.api.letsencrypt.org/directory" else "https://acme-v02.api.letsencrypt.org/directory"; server = if cfg.dns.useStagingACME then "https://acme-staging-v02.api.letsencrypt.org/directory" else "https://acme-v02.api.letsencrypt.org/directory";
dnsPropagationCheck = false; dnsPropagationCheck = false;
reloadServices = [ "nginx" ];
}; };
certs = lib.mkForce { certs = lib.mkForce {
"${cfg.domain}" = { "${cfg.domain}" = {

View file

@ -12,11 +12,6 @@ in
Restart = "on-failure"; Restart = "on-failure";
}; };
}; };
"nginx-config-reload" = {
serviceConfig = {
After = [ "acme-${domain}.service" ];
};
};
}; };
}; };
} }