title: Setting up Traefik with LE integration - error too many redirects / 302
body: <p>I've been following the examples for Traefik and LE integration and those on SmartHomeBeginner, though I've been unable to get Traefik to work on the subdomain over https. I can see the backend on the IP address with the port number but that's not ideal.</p>
  
  <p>When I view the HTTPS page in the browser I keep getting ERR_TOO_MANY_REDIRECTS and I've confirmed the fail in Linux doing a simple wget and I get a 302 error and major fail after 20 redirects.</p>
  
  <p>I can't see where I'm going wrong...</p>
  
  <pre><code>####### Docker Compose ##########
  version: "3.6"
  services:
    traefik:
       image: traefik:1.7.4
       container_name: traefik
       command: --api --docker
       restart: always
       ports:
         - 80:80
         - 443:443
       environment:
         - CLOUDFLARE_EMAIL=${CLOUDFLARE_EMAIL}
         - CLOUDFLARE_API_KEY=${CLOUDFLARE_API_KEY}
       networks:
         - traefik_proxy
       labels:
         - "traefik.enable=true"
         - "traefik.backend=traefik"
         - "traefik.frontend.rule=Host:traefik.${DOMAINNAME}" 
         - "traefik.port=8080"
       volumes:
         - /var/run/docker.sock:/var/run/docker.sock
         - ${USERDIR}/docker/traefik/traefik.toml:/traefik.toml
         - ${USERDIR}/docker/traefik/acme/acme.json:/acme.json
         - ${USERDIR}/docker/shared:/shared
  
  ###### traefik.toml ######
  
  logLevel = "DEBUG" #DEBUG, INFO, WARN, ERROR, FATAL, PANIC
  
  defaultEntryPoints = ["https","http"]
  
  [entryPoints]
    [entryPoints.http]
    address = ":80"
      [entryPoints.http.redirect]
      entryPoint = "https"
    [entryPoints.https]
    address = ":443"
    [entryPoints.https.tls]
  
  [docker]
  endpoint = "unix:///var/run/docker.sock"
  watch = true
  exposedByDefault = false
  
  [acme]
  email = "email"
  storage = "/acme.json"
  entryPoint = "https"
  # remove below line when happy its all working fine - dev LE certs
  caServer="https://acme-staging-v02.api.letsencrypt.org/directory"
  
  #create certificate when container is created
  [acme.dnsChallenge]
     provider = "cloudflare"
     delayBeforeCheck = 0
  [[acme.domains]]
     main = "xxxx.com"
  [[acme.domains]]
     main = "*.xxxx.com"
  </code></pre>
  
  <p>Thanks in advance.</p>