2016-06-06 15:32:27 +02:00
|
|
|
description "Caddy HTTP/2 web server"
|
2016-03-31 14:36:44 +02:00
|
|
|
|
|
|
|
start on runlevel [2345]
|
|
|
|
stop on runlevel [016]
|
|
|
|
|
2016-06-06 15:32:27 +02:00
|
|
|
console log
|
2016-03-31 14:36:44 +02:00
|
|
|
|
|
|
|
setuid www-data
|
|
|
|
setgid www-data
|
|
|
|
|
|
|
|
respawn
|
|
|
|
respawn limit 10 5
|
|
|
|
|
2016-07-29 22:56:25 +02:00
|
|
|
reload signal SIGUSR1
|
|
|
|
|
2016-06-06 15:32:27 +02:00
|
|
|
# Let's Encrypt certificates will be written to this directory.
|
2017-03-28 21:56:18 +01:00
|
|
|
env CADDYPATH=/etc/ssl/caddy
|
2016-06-06 15:32:27 +02:00
|
|
|
|
|
|
|
limit nofile 1048576 1048576
|
2016-03-31 14:36:44 +02:00
|
|
|
|
|
|
|
script
|
2017-03-28 21:56:18 +01:00
|
|
|
cd /etc/ssl/caddy
|
2016-06-06 15:32:27 +02:00
|
|
|
rootdir="$(mktemp -d -t "caddy-run.XXXXXX")"
|
2016-07-05 13:39:04 -04:00
|
|
|
exec /usr/local/bin/caddy -agree -log=stdout -conf=/etc/caddy/Caddyfile -root=$rootdir
|
2016-06-06 15:32:27 +02:00
|
|
|
end script
|