Skip to content

Instantly share code, notes, and snippets.

@elvizlai
Created November 24, 2017 03:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elvizlai/7eeb91a8a2da749a6c90eb2de1f21482 to your computer and use it in GitHub Desktop.
Save elvizlai/7eeb91a8a2da749a6c90eb2de1f21482 to your computer and use it in GitHub Desktop.
traefik demo
################################################################
# 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