Skip to content

Instantly share code, notes, and snippets.

@dniel
Created September 14, 2018 12:50
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 dniel/b15e9d3120bd817829d34b42c5aeb2aa to your computer and use it in GitHub Desktop.
Save dniel/b15e9d3120bd817829d34b42c5aeb2aa to your computer and use it in GitHub Desktop.
traefik.toml
debug = true
checkNewVersion = false
[entryPoints]
[entryPoints.http]
address = ":80"
[accessLog]
[web]
[file]
[backends]
[backends.ui]
[backends.ui.servers]
[backends.ui.servers.server1]
url = "http://172.16.18.3:8081"
weight = 1
[backends.registry]
[backends.registry.servers]
[backends.registry.servers.server1]
url = "http://172.16.18.3:5000"
weight = 1
[frontends]
[frontends.ui]
entryPoints = ["http"]
passHostHeader = true
backend = "ui"
[frontends.ui.routes.route1]
rule = "PathPrefix:/path1"
[frontends.registry]
entryPoints = ["http"]
passHostHeader = true
backend = "registry"
[frontends.registry.routes.route1]
rule = "PathPrefix:/path2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment