Closed karimfromjordan closed 1 year ago
See #92 and https://github.com/caddyserver/website/pull/284
Yep, that's already in the docs. https://caddyserver.com/docs/running#overrides
Regarding the panic, see https://github.com/caddyserver/caddy/issues/5680, we're working on it.
(These kinds of bugs are extremely rare btw)
I just had Caddy crash on one of my servers for the first time. Here are the logs:
In order to get my apps online again I had to manually run
systemctl restart caddy.service
. I noticed that Caddy's service units don't instruct systemd to restart Caddy in case it crashes so I propose to make the following changes to the default systemd units:I do this for all of my apps in case they ever crash. It will restart them automatically up to 5 times (
StartLimitBurst
) within 60 seconds (StartLimitIntervalSec
). If they reach the limit they transition into thefailed
state.