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