Skip to content

Instantly share code, notes, and snippets.

@cedced19
Last active June 27, 2016 09:21
Show Gist options
  • Save cedced19/1d1271455141f893486416ca18b3f4cc to your computer and use it in GitHub Desktop.
Save cedced19/1d1271455141f893486416ca18b3f4cc to your computer and use it in GitHub Desktop.
My caddy configuration https://caddyserver.com.
[Unit]
Description=Caddy Service
After=network.target syslog.target remote-fs.target nss-lookup.target
[Service]
Type=simple
ExecStart=/usr/local/caddy/caddy -pidfile=caddy.pid -agree=true
WorkingDirectory=/usr/local/caddy
PIDFile=/usr/local/caddy/caddy.pid
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
[Install]
WantedBy=multi-user.target
mydomain.com:443 {
tls [email protected]
proxy / localhost:7772 {
except /views /fonts /javascripts /langs
}
root /node/learn-memory/public
gzip
}
mydomain.com:8082 {
tls [email protected]
proxy / 192.168.0.39:8082
gzip
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment