Server/traefik: change systemd restart interval

This commit is contained in:
Toast 2024-03-01 12:24:57 +01:00
parent 620cb43697
commit e7b6ebb54e

View file

@ -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 ];
}