Server/Caddy: start after tailscale:x

This commit is contained in:
Toast 2024-08-16 19:54:39 +02:00
parent 0119c52db6
commit 16fa01ad7d

View file

@ -50,9 +50,9 @@ in {
"${downloadsHostname},everest"
];
systemd = {
units.tailscaled.requiredBy = ["caddy.service"];
services.caddy.after = ["tailscaled.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
# ages to boot up. If I don't add a delay, caddy tries to bind to
# the tailscale interface before it's ready, making it crash too much
# in too little time
services.caddy.serviceConfig.RestartSec = lib.mkForce "120s";