2016-03-31 20:36:44 +08:00
|
|
|
Upstart conf for Caddy
|
|
|
|
=====================
|
|
|
|
|
|
|
|
Usage
|
|
|
|
-----
|
|
|
|
|
|
|
|
Usage in this blogpost: [Running Caddy Server as a service with Upstart](https://denbeke.be/blog/servers/running-caddy-server-as-a-service/).
|
|
|
|
Short recap:
|
|
|
|
|
2016-07-06 01:39:04 +08:00
|
|
|
* Download Caddy in `/usr/local/bin/caddy` and execute `sudo setcap cap_net_bind_service=+ep /usr/local/bin/caddy`.
|
2016-10-18 04:04:26 +08:00
|
|
|
* Save the appropriate upstart config file in `/etc/init/caddy.conf`.
|
2016-06-06 21:32:27 +08:00
|
|
|
* Ensure that the folder `/etc/caddy` exists and that the subfolder .caddy is owned by `www-data`.
|
2016-03-31 20:36:44 +08:00
|
|
|
* Create a Caddyfile in `/etc/caddy/Caddyfile`.
|
2016-06-06 21:32:27 +08:00
|
|
|
* Now you can use `sudo service caddy start|stop|restart`.
|