traefik/traefik.toml
2015-09-14 11:01:47 +02:00

56 lines
1.2 KiB
TOML

port = ":8001"
graceTimeOut = 10
# traefikLogsFile = "log/traefik.log"
traefikLogsStdout = true
accessLogsFile = "log/access.log"
logLevel = "DEBUG"
# CertFile = "traefik.crt"
# KeyFile = "traefik.key"
[docker]
endpoint = "unix:///var/run/docker.sock"
watch = true
domain = "localhost"
# filename = "docker.tmpl"
# [marathon]
# endpoint = "http://127.0.0.1:8080"
# networkInterface = "eth0"
# watch = true
# domain = "toto.fr"
# filename = "marathon.tmpl"
[web]
address = ":8010"
#[file]
# filename = "rules.toml"
watch = true
[backends]
[backends.backend1]
[backends.backend1.servers.server1]
url = "http://172.17.0.2:80"
weight = 10
[backends.backend1.servers.server2]
url = "http://172.17.0.3:80"
weight = 1
[backends.backend2]
[backends.backend2.servers.server1]
url = "https://www.google.fr"
weight = 1
[backends.backend2.servers.server2]
url = "http://www.wikipedia.fr"
weight = 2
[routes]
[routes.route1]
backend = "backend2"
[routes.route1.rules.test_zenika_1]
category = "Host"
value = "test.localhost"
[routes.route2]
backend = "backend1"
[routes.route2.rules.test_zenika_2]
category = "Path"
value = "/test"