caddy/dist/init/linux-sysvinit/README.md

12 lines
449 B
Markdown
Raw Normal View History

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`.