caddy/dist/init/linux-upstart
2017-03-28 22:04:19 +01:00
..
caddy.conf Make CADDYPATH equal across init scripts 2017-03-28 22:04:19 +01:00
caddy.conf.centos-6 Make CADDYPATH equal across init scripts 2017-03-28 22:04:19 +01:00
caddy.conf.ubuntu-12.04 Make CADDYPATH equal across init scripts 2017-03-28 22:04:19 +01:00
README.md add separate upstart scripts for centos 6 and ubuntu 12.04 2016-10-17 22:04:26 +02:00

Upstart conf for Caddy

Usage

Usage in this blogpost: Running Caddy Server as a service with Upstart.
Short recap:

  • Download Caddy in /usr/local/bin/caddy and execute sudo setcap cap_net_bind_service=+ep /usr/local/bin/caddy.
  • Save the appropriate upstart config file in /etc/init/caddy.conf.
  • Ensure that the folder /etc/caddy exists and that the subfolder .caddy is owned by www-data.
  • Create a Caddyfile in /etc/caddy/Caddyfile.
  • Now you can use sudo service caddy start|stop|restart.