Skip to content

Instantly share code, notes, and snippets.

@cdaringe
Last active May 16, 2018 05:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdaringe/6e51b87ad176c95153b951b111c4b1cb to your computer and use it in GitHub Desktop.
Save cdaringe/6e51b87ad176c95153b951b111c4b1cb to your computer and use it in GitHub Desktop.
checkNewVersion = false
debug = true
defaultEntryPoints = ["http", "https"] # fear not, we redirect below
logLevel = "ERROR"
watch = true
# To redirect an http entrypoint to an https entrypoint (with SNI support):
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
MinVersion = "VersionTLS12"
[[entryPoints.https.tls.certificates]]
CertFile = "/www/certs/server.crt"
KeyFile = "/www/certs/server.key"
[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "docker.local"
watch = true
exposedbydefault = false
[acme]
email = "<my-email>"
storage = "acme.json"
entryPoint = "https"
onHostRule = true
[[acme.domains]]
main = "*.cdaringe.com"
sans = ["cdaringe.com"]
[[acme.domains]]
main = "*.senorsalsa.org"
sans = ["senorsalsa.org"]
[acme.dnsChallenge]
provider = "digitalocean" # i am providing the auth token!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment