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