mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-03 06:16:10 +08:00
ee124a6d3c
"$(which caddy)" is not work at startup. After this change, I can run "insserv -d caddy" to start caddy automatically on boot. |
||
---|---|---|
.. | ||
caddy | ||
README.md |
SysVinit conf for Caddy
Usage
- Download the appropriate Caddy binary in
/usr/local/bin/caddy
or usecurl https://getcaddy.com | bash
. - Save the SysVinit config file in
/etc/init.d/caddy
. - Ensure that the folder
/etc/caddy
exists and that the folder/etc/ssl/caddy
is owned bywww-data
. - Create a Caddyfile in
/etc/caddy/Caddyfile
- Now you can use
service caddy start|stop|restart|reload|status
asroot
.