Consul backend

Træfɪk can be configured to use Consul as a backend configuration:

  1. ################################################################
  2. # Consul KV configuration backend
  3. ################################################################
  4. # Enable Consul KV configuration backend
  5. #
  6. # Optional
  7. #
  8. [consul]
  9. # Consul server endpoint
  10. #
  11. # Required
  12. #
  13. endpoint = "127.0.0.1:8500"
  14. # Enable watch Consul changes
  15. #
  16. # Optional
  17. #
  18. watch = true
  19. # Prefix used for KV store.
  20. #
  21. # Optional
  22. #
  23. prefix = "traefik"
  24. # Override default configuration template. For advanced users :)
  25. #
  26. # Optional
  27. #
  28. # filename = "consul.tmpl"
  29. # Enable consul TLS connection
  30. #
  31. # Optional
  32. #
  33. # [consul.tls]
  34. # ca = "/etc/ssl/ca.crt"
  35. # cert = "/etc/ssl/consul.crt"
  36. # key = "/etc/ssl/consul.key"
  37. # insecureskipverify = true

Please refer to the Key Value storage structure section to get documentation on traefik KV structure.