2016-04-19 23:45:59 +00:00
|
|
|
################################################################
|
|
|
|
# Global configuration
|
|
|
|
################################################################
|
|
|
|
traefikLogsFile = "log/traefik.log"
|
|
|
|
accessLogsFile = "log/access.log"
|
|
|
|
logLevel = "DEBUG"
|
|
|
|
|
2019-03-14 08:30:04 +00:00
|
|
|
[entrypoints]
|
|
|
|
[entrypoints.api]
|
2018-03-12 09:40:04 +00:00
|
|
|
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.backend1]
|
|
|
|
[backends.backend1.servers.server1]
|
|
|
|
url = "http://127.0.0.1:8081"
|
2018-04-11 14:30:04 +00:00
|
|
|
weight = 1
|
|
|
|
|
2017-09-11 17:10:04 +00:00
|
|
|
[backends.backend2]
|
|
|
|
[backends.backend2.LoadBalancer]
|
|
|
|
method = "drr"
|
|
|
|
[backends.backend2.servers.server1]
|
|
|
|
url = "http://127.0.0.1:8082"
|
2018-04-11 14:30:04 +00:00
|
|
|
weight = 1
|
2017-09-11 17:10:04 +00:00
|
|
|
[backends.backend2.servers.server2]
|
|
|
|
url = "http://127.0.0.1:8083"
|
2018-04-11 14:30:04 +00:00
|
|
|
weight = 1
|
|
|
|
|
2016-04-19 23:45:59 +00:00
|
|
|
[frontends]
|
2017-09-11 17:10:04 +00:00
|
|
|
[frontends.frontend1]
|
|
|
|
backend = "backend1"
|
|
|
|
[frontends.frontend1.routes.test_1]
|
|
|
|
rule = "Path: /test1"
|
2018-04-11 14:30:04 +00:00
|
|
|
|
2017-09-11 17:10:04 +00:00
|
|
|
[frontends.frontend2]
|
|
|
|
backend = "backend2"
|
|
|
|
passHostHeader = true
|
|
|
|
[frontends.frontend2.routes.test_2]
|
|
|
|
rule = "Path: /test2"
|