fix: make network interfaces required by caddy with bindsto

Louis Pearson 2024-01-09 15:43:21 -07:00
parent 5c7672e67f
commit 078852c255
1 changed files with 2 additions and 1 deletions

View File

@ -490,7 +490,8 @@
# patch the caddy service to wait for the tailscale interface before starting
systemd.services."caddy" = {
requires = [ "tailscaled.service" ];
after = [ "sys-subsystem-net-devices-tailscale0.device" "tailscaled.service" ];
bindsto = [ "sys-subsystem-net-devices-tailscale0.device" "sys-subsystem-net-devices-enp3s0.device" ];
after = [ "sys-subsystem-net-devices-tailscale0.device" "sys-subsystem-net-devices-enp3s0.device" "tailscaled.service" ];
};
# Headscale for access to the network while away from home