fix(caddy): add timeout before starting service
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-10-18 20:29:10 -04:00
parent edd3a073f0
commit 1987dbe35d

View file

@ -17,13 +17,16 @@ in {
boot.kernel.sysctl."net.ipv4.ip_nonlocal_bind" = 1; boot.kernel.sysctl."net.ipv4.ip_nonlocal_bind" = 1;
systemd.services.caddy.serviceConfig = { systemd.services.caddy = {
EnvironmentFile = secrets.caddy-cloudflare.path; preStart = "sleep 30";
serviceConfig = {
EnvironmentFile = secrets.caddy-cloudflare.path;
# For some reason the service # For some reason the service
# doesn't shutdown normally # doesn't shutdown normally
KillSignal = "SIGKILL"; KillSignal = "SIGKILL";
RestartKillSignal = "SIGKILL"; RestartKillSignal = "SIGKILL";
};
}; };
services.caddy = { services.caddy = {