Skip to content

Instantly share code, notes, and snippets.

@mabitt
Created September 21, 2017 16:19
Show Gist options
  • Save mabitt/a3b6f030e57409bdd7266226e16419ac to your computer and use it in GitHub Desktop.
Save mabitt/a3b6f030e57409bdd7266226e16419ac to your computer and use it in GitHub Desktop.
Caddyserver ssl terminator conf
:80 {
redir 301 {
/ https://{host}{uri}
}
}
:443 {
gzip
proxy / backend:80 {
policy round_robin
transparent
}
tls [email protected] {
max_certs 10
# ca https://acme-staging.api.letsencrypt.org/directory
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment