modules(acme-dns): some fixes

This commit is contained in:
Raito Bezarius 2021-07-24 22:42:05 +02:00
parent e8305b7435
commit 83ec9ca4dd

View file

@ -65,7 +65,7 @@ in
};
api = {
ip = cfg.api.isten;
ip = cfg.api.listen;
disable_registration = false;
port = cfg.api.port;
tls = "none";
@ -91,13 +91,12 @@ in
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
DynamicUser = true;
startLimitBurst = 4;
startLimitIntervalSec = 5 * 60; # 5 mins
serviceConfig = {
AmbientCapabilities = [ "CAP_NET_BIND_SERVICE" ];
DynamicUser = true;
BindPaths = [ cfg.stateDir ];
ExecStart = "${cfg.package}/bin/acme-dns -d -c ${configFile}";
Restart = "always";
RestartSec = "4s";