caddy/dist/init/linux-sysvinit
Daniel van Dorp 3a4f8e8d0c dist/init/linux-sysvinit: execute setcap directly
`$(which setcap)` might evaluate to nothing,
and this way the error thrown will be more clear.
If setcap is not available on Debian/Ubuntu,
you can install the package `libcap2-bin`
2016-08-05 16:33:47 +02:00
..
caddy dist/init/linux-sysvinit: execute setcap directly 2016-08-05 16:33:47 +02:00
README.md dist/init/linux-sysvinit: caddy for SysVinit 2016-08-01 20:51:22 +02:00

SysVinit conf for Caddy

Usage

  • Download the appropriate Caddy binary in /usr/local/bin/caddy or use curl https://getcaddy.com | bash.
  • Save the SysVinit config file in /etc/init.d/caddy.
  • Ensure that the folder /etc/caddy exists and that the subfolder ssl is owned by www-data.
  • Create a Caddyfile in /etc/caddy/Caddyfile
  • Now you can use sudo /etc/init.d/caddy start|stop|restart|reload|status.