Skip to content

Instantly share code, notes, and snippets.

@likwid
Created April 26, 2018 15:34
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 likwid/4c7e0d9c86e68b28f11d4116395f0e94 to your computer and use it in GitHub Desktop.
Save likwid/4c7e0d9c86e68b28f11d4116395f0e94 to your computer and use it in GitHub Desktop.
Traefik example configuration with Consul
defaultEntryPoints = ["http"]
[accessLog]
[traefikLog]
[entryPoints]
[entryPoints.http]
address = ":4000"
compress = true
[entryPoints.api]
address = ":9000"
[api]
dashboard = true
debug = true
entryPoint = "api"
[rest]
entryPoint = "api"
[consul]
endpoint = "127.0.0.1:8500"
watch = true
prefix = "traefik"
[consulCatalog]
endpoint = "127.0.0.1:8500"
domain = "nonprod.internal"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment