mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-30 18:22:49 -04:00 
			
		
		
		
	* INIT-systemd use CADDYPATH instatt of HOME * INIT-upstart use CADDYPATH instatt of HOME * INIT-upstart use CADDYPATH instatt of HOME * INIT-upstart use CADDYPATH instatt of HOME
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/caddyand executesudo 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/caddyexists and that the subfolder .caddy is owned bywww-data.
- Create a Caddyfile in /etc/caddy/Caddyfile.
- Now you can use sudo service caddy start|stop|restart.