Created
November 24, 2017 03:43
-
-
Save elvizlai/7eeb91a8a2da749a6c90eb2de1f21482 to your computer and use it in GitHub Desktop.
traefik demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################ | |
# Global configuration | |
################################################################ | |
# Enable debug mode | |
# | |
# Optional | |
# Default: false | |
debug = true | |
defaultEntryPoints = ["http"] | |
[entryPoints] | |
[entryPoints.http] | |
address = ":8000" | |
[file] | |
[backends] | |
[backends.backend1] | |
[backends.backend1.healthcheck] | |
interval = "5s" | |
path = "/" | |
[backends.backend1.servers.server1] | |
url = "http://127.0.0.1:9090" | |
weight = 1 | |
[backends.backend1.servers.server2] | |
url = "http://127.0.0.1:9091" | |
weight = 1 | |
[frontends] | |
[frontends.frontend1] | |
backend = "backend1" | |
################################################################ | |
# Web configuration backend | |
################################################################ | |
# Enable web configuration backend | |
[web] | |
# Web administration port | |
# | |
# Required | |
# | |
address = ":8081" | |
################################################################ | |
# Docker configuration backend | |
################################################################ | |
# Enable Docker configuration backend | |
[docker] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment