Server/traefik: change systemd restart interval
This commit is contained in:
parent
620cb43697
commit
e7b6ebb54e
1 changed files with 8 additions and 1 deletions
|
|
@ -20,7 +20,14 @@
|
|||
};
|
||||
};
|
||||
|
||||
systemd.units.tailscaled.requiredBy = [ "traefik.service" ];
|
||||
systemd = {
|
||||
units.tailscaled.requiredBy = [ "traefik.service" ];
|
||||
# We have somewhat frequent power outages, and our ISP router takes
|
||||
# ages to boot up. If I don't add a delay, traefik tries to bind to
|
||||
# the tailscale interface before it's ready, making it crash too much
|
||||
# in too little time
|
||||
services.traefik.serviceConfig.RestartSec = 120;
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 8080 ];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue