2015-09-09 15:50:02 +00:00
|
|
|
port = ":8001"
|
2015-09-10 13:13:35 +00:00
|
|
|
graceTimeOut = 10
|
2015-09-11 16:55:38 +00:00
|
|
|
# traefikLogsFile = "log/traefik.log"
|
2015-09-11 14:37:13 +00:00
|
|
|
traefikLogsStdout = true
|
2015-09-11 16:55:38 +00:00
|
|
|
# accessLogsFile = "log/access.log"
|
2015-09-11 14:37:13 +00:00
|
|
|
logLevel = "DEBUG"
|
2015-09-11 22:37:57 +00:00
|
|
|
# CertFile = "traefik.crt"
|
|
|
|
# KeyFile = "traefik.key"
|
2015-09-09 15:50:02 +00:00
|
|
|
|
2015-09-10 15:31:52 +00:00
|
|
|
[docker]
|
|
|
|
endpoint = "unix:///var/run/docker.sock"
|
2015-09-08 20:41:14 +00:00
|
|
|
watch = true
|
2015-09-09 15:10:43 +00:00
|
|
|
domain = "toto.fr"
|
2015-09-11 17:25:49 +00:00
|
|
|
# filename = "docker.tmpl"
|
|
|
|
|
2015-09-10 15:31:52 +00:00
|
|
|
# [marathon]
|
|
|
|
# endpoint = "http://127.0.0.1:8080"
|
|
|
|
# networkInterface = "eth0"
|
|
|
|
# watch = true
|
|
|
|
# domain = "toto.fr"
|
|
|
|
# filename = "marathon.tmpl"
|
2015-09-07 21:25:07 +00:00
|
|
|
|
2015-09-08 11:33:10 +00:00
|
|
|
[web]
|
|
|
|
address = ":8010"
|
|
|
|
|
2015-09-10 14:14:08 +00:00
|
|
|
# [file]
|
|
|
|
# filename = "rules.toml"
|
|
|
|
# watch = true
|
2015-09-01 20:28:24 +00:00
|
|
|
|
2015-09-07 21:25:07 +00:00
|
|
|
[backends]
|
|
|
|
[backends.backend1]
|
|
|
|
[backends.backend1.servers.server1]
|
|
|
|
url = "http://172.17.0.2:80"
|
2015-09-10 14:14:08 +00:00
|
|
|
weight = 10
|
2015-09-07 21:25:07 +00:00
|
|
|
[backends.backend1.servers.server2]
|
|
|
|
url = "http://172.17.0.3:80"
|
2015-09-10 14:14:08 +00:00
|
|
|
weight = 1
|
2015-09-08 20:03:31 +00:00
|
|
|
[backends.backend2]
|
|
|
|
[backends.backend2.servers.server1]
|
|
|
|
url = "http://172.17.0.2:80"
|
2015-09-10 14:14:08 +00:00
|
|
|
weight = 100
|
2015-09-07 21:25:07 +00:00
|
|
|
|
|
|
|
[routes]
|
|
|
|
[routes.route1]
|
2015-09-09 15:41:33 +00:00
|
|
|
backend = "backend2"
|
2015-09-07 21:25:07 +00:00
|
|
|
[routes.route1.rules.test_zenika_1]
|
|
|
|
category = "Host"
|
|
|
|
value = "test.zenika.fr"
|
|
|
|
[routes.route2]
|
2015-09-09 15:41:33 +00:00
|
|
|
backend = "backend1"
|
2015-09-07 21:25:07 +00:00
|
|
|
[routes.route2.rules.test_zenika_2]
|
|
|
|
category = "Path"
|
2015-09-08 20:03:31 +00:00
|
|
|
value = "/test"
|