From c17a45e5d003be18b20d5bc6679c127759eb6a8d Mon Sep 17 00:00:00 2001 From: matt1432 Date: Mon, 28 Oct 2024 09:23:47 -0400 Subject: [PATCH] chore(caddy): remove unneeded timeout --- devices/cluster/modules/caddy.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/devices/cluster/modules/caddy.nix b/devices/cluster/modules/caddy.nix index 7c492e0b..de9818d0 100644 --- a/devices/cluster/modules/caddy.nix +++ b/devices/cluster/modules/caddy.nix @@ -17,16 +17,13 @@ in { boot.kernel.sysctl."net.ipv4.ip_nonlocal_bind" = 1; - systemd.services.caddy = { - preStart = "sleep 30"; - serviceConfig = { - EnvironmentFile = secrets.caddy-cloudflare.path; + systemd.services.caddy.serviceConfig = { + EnvironmentFile = secrets.caddy-cloudflare.path; - # For some reason the service - # doesn't shutdown normally - KillSignal = "SIGKILL"; - RestartKillSignal = "SIGKILL"; - }; + # For some reason the service + # doesn't shutdown normally + KillSignal = "SIGKILL"; + RestartKillSignal = "SIGKILL"; }; services.caddy = {