nixos/security/acme: order after nss-lookup.target
This should hopefully solve races with DNS servers (such as unbound) during the activation of a new generation. Previously unbound could still be unavailable and thus the acme script would fail.
This commit is contained in:
parent
e7ebd6be80
commit
2c0ee52d91
@ -207,7 +207,7 @@ let
|
|||||||
|
|
||||||
renewService = {
|
renewService = {
|
||||||
description = "Renew ACME certificate for ${cert}";
|
description = "Renew ACME certificate for ${cert}";
|
||||||
after = [ "network.target" "network-online.target" "acme-fixperms.service" ] ++ selfsignedDeps;
|
after = [ "network.target" "network-online.target" "acme-fixperms.service" "nss-lookup.target" ] ++ selfsignedDeps;
|
||||||
wants = [ "network-online.target" "acme-fixperms.service" ] ++ selfsignedDeps;
|
wants = [ "network-online.target" "acme-fixperms.service" ] ++ selfsignedDeps;
|
||||||
|
|
||||||
# https://github.com/NixOS/nixpkgs/pull/81371#issuecomment-605526099
|
# https://github.com/NixOS/nixpkgs/pull/81371#issuecomment-605526099
|
||||||
|
Loading…
Reference in New Issue
Block a user