From 6658884f341714939277ae7d4fdb4e9e0e35d07f Mon Sep 17 00:00:00 2001 From: Leopere Date: Sun, 30 Sep 2018 16:25:02 -0400 Subject: [PATCH] Added traefik.toml This toml file is setup in a way to make traefik automaticall upgrade all connections to TLS that are behind the Traefik proxy. You will need to change some strings. --- traefik/traefik.toml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 traefik/traefik.toml diff --git a/traefik/traefik.toml b/traefik/traefik.toml new file mode 100644 index 0000000..d8ccec1 --- /dev/null +++ b/traefik/traefik.toml @@ -0,0 +1,40 @@ +debug = true + +logLevel = "ERROR" +defaultEntryPoints = ["https","http"] + +[entryPoints] + [entryPoints.http] + address = ":80" + [entryPoints.http.redirect] + entryPoint = "https" + [entryPoints.https] + address = ":443" + [entryPoints.https.tls] + +[retry] + +[docker] +endpoint = "unix:///var/run/docker.sock" +## Edit the domain string with your domain that you want to provision web apps to. +domain = "${DOMAIN}" +watch = true +exposedbydefault = false + +[acme] +## Edit the email string with where you want to receive TLS Cert notifications. +email = "admin@${DOMAIN}" +storage = "/opt/traefik/acme.json" +entryPoint = "https" +OnHostRule = true +[acme.httpChallenge] +entryPoint = "http" + +# Ping definition for enabling healthcheck +[ping] + # Name of the related entry point + # + # Optional + # Default: "traefik" + # + entryPoint = "traefik"