mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-29 20:24:11 +08:00
13 lines
483 B
Markdown
13 lines
483 B
Markdown
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:
|
|
|
|
* Download Caddy in `/usr/bin/caddy` and execute `sudo setcap cap_net_bind_service=+ep /usr/bin/caddy`.
|
|
* Save the upstart config file in `/etc/init/caddy.conf`.
|
|
* Create a Caddyfile in `/etc/caddy/Caddyfile`.
|
|
* Now you can use `sudo service caddy start|stop|restart`. |