Skip to content

Instantly share code, notes, and snippets.

@wyattjoh
Last active April 18, 2018 12:39
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wyattjoh/dfb584bec1fe18a1052577aa0cc16950 to your computer and use it in GitHub Desktop.
Save wyattjoh/dfb584bec1fe18a1052577aa0cc16950 to your computer and use it in GitHub Desktop.
Caddy Supervisord Setup
[program:caddy]
command=/usr/bin/caddy -conf="/etc/caddy/Caddyfile"
autostart=true
autorestart=true
startsecs=10
stdout_logfile=/var/log/caddy.log
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10
stdout_capture_maxbytes=1MB
stderr_logfile=/var/log/caddy_error.log
stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10
stderr_capture_maxbytes=1MB
user = caddy
environment = HOME="/etc/caddy", USER="caddy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment