traefik.toml 868 B

12345678910111213141516171819202122232425262728293031323334
  1. debug = false
  2. checkNewVersion = true
  3. logLevel = "ERROR"
  4. defaultEntryPoints = ["https","http"]
  5. [web]
  6. # web ui on 8080
  7. [entryPoints]
  8. [entryPoints.http]
  9. address = ":80"
  10. [entryPoints.http.redirect]
  11. entryPoint = "https"
  12. [entryPoints.https]
  13. address = ":443"
  14. [entryPoints.https.redirect]
  15. # For this to work, there must be a corresponding frontend rule
  16. # See https://github.com/containous/traefik/issues/919#issuecomment-311033114
  17. # TODO For now the setup script replace those placeholders
  18. regex = "^https://www.###DOMAIN###/(.*)"
  19. replacement = "https://###DOMAIN###/$1"
  20. [entryPoints.https.tls]
  21. [docker]
  22. # the domain is set on the command line
  23. endpoint = "unix:///var/run/docker.sock"
  24. watch = true
  25. exposedbydefault = false
  26. [acme]
  27. # the email is set on the command line
  28. storage = "acme.json"
  29. entryPoint = "https"
  30. OnHostRule = true