aboutsummarylogtreecommitdiffstats
path: root/caddy_new.service
diff options
context:
space:
mode:
Diffstat (limited to 'caddy_new.service')
-rw-r--r--caddy_new.service4
1 files changed, 3 insertions, 1 deletions
diff --git a/caddy_new.service b/caddy_new.service
index eed5b4fba9fd..d46b27f585ee 100644
--- a/caddy_new.service
+++ b/caddy_new.service
@@ -6,13 +6,15 @@ Wants=network-online.target systemd-networkd-wait-online.service
[Service]
Restart=on-failure
+StartLimitInterval=86400
+StartLimitBurst=5
; User and group the process will run as.
User=http
Group=http
; Letsencrypt-issued certificates will be written to this directory.
-Environment=HOME=/etc/ssl/caddy
+Environment=CADDYPATH=/etc/ssl/caddy
; Always set "-root" to something safe in case it gets forgotten in the Caddyfile.
ExecStart=/usr/bin/caddy -log stdout -agree=true -conf=/etc/caddy/Caddyfile -root=/var/tmp