2016-04-19 16:45:59 -07:00
################################################################
# Global configuration
################################################################
traefikLogsFile = "log/traefik.log"
accessLogsFile = "log/access.log"
logLevel = "DEBUG"
2018-03-12 10:40:04 +01:00
[ entryPoints ]
[ entryPoints . api ]
address = ":7888"
2016-04-19 16:45:59 -07:00
################################################################
2018-03-12 10:40:04 +01:00
# API configuration
2016-04-19 16:45:59 -07:00
################################################################
2018-03-12 10:40:04 +01:00
[ api ]
entryPoint = "api"
2016-04-19 16:45:59 -07:00
################################################################
# File configuration backend
################################################################
[ file ]
################################################################
# rules
################################################################
2017-09-11 19:10:04 +02:00
[ backends ]
[ backends . backend ]
[ backends . backend . LoadBalancer ]
method = "drr"
[ backends . backend . servers . server1 ]
url = "http://127.0.0.1:8081"
2018-04-11 16:30:04 +02:00
weight = 1
2017-09-11 19:10:04 +02:00
[ backends . backend . servers . server2 ]
url = "http://127.0.0.1:8082"
2018-04-11 16:30:04 +02:00
weight = 1
2017-09-11 19:10:04 +02:00
[ backends . backend . servers . server3 ]
url = "http://127.0.0.1:8083"
2018-04-11 16:30:04 +02:00
weight = 1
2017-09-11 19:10:04 +02:00
[ frontends ]
[ frontends . frontend ]
backend = "backend"
passHostHeader = true
[ frontends . frontend . routes . test ]
rule = "Path: /test"