36 lines
616 B
TOML
36 lines
616 B
TOML
[global]
|
|
checkNewVersion = false
|
|
sendAnonymousUsage = false
|
|
|
|
[log]
|
|
filePath = "traefik.log"
|
|
level = "ERROR"
|
|
|
|
[accessLog]
|
|
filePath = "access.log"
|
|
|
|
[entryPoints]
|
|
[entryPoints.web]
|
|
address = ":8000"
|
|
[entryPoints.api]
|
|
address = ":7888"
|
|
|
|
[api]
|
|
entryPoint = "api"
|
|
|
|
[providers]
|
|
[providers.file]
|
|
|
|
## dynamic configuration ##
|
|
|
|
[http.routers]
|
|
[http.routers.router1]
|
|
Service = "service1"
|
|
rule = "Path(`/test1`)"
|
|
|
|
[http.services]
|
|
[http.services.service1]
|
|
[http.services.service1.loadBalancer]
|
|
|
|
[[http.services.service1.loadBalancer.servers]]
|
|
url = "http://127.0.0.1:8081"
|