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,7 +17,9 @@ 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 = {
preStart = "sleep 30";
serviceConfig = {
EnvironmentFile = secrets.caddy-cloudflare.path; EnvironmentFile = secrets.caddy-cloudflare.path;
# For some reason the service # For some reason the service
@ -25,6 +27,7 @@ in {
KillSignal = "SIGKILL"; KillSignal = "SIGKILL";
RestartKillSignal = "SIGKILL"; RestartKillSignal = "SIGKILL";
}; };
};
services.caddy = { services.caddy = {
enable = true; enable = true;