fix(caddy): add timeout before starting service
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
edd3a073f0
commit
1987dbe35d
1 changed files with 9 additions and 6 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue