mirror of
https://github.com/containous/traefik.git
synced 2024-12-22 13:34:03 +03:00
36 lines
603 B
TOML
36 lines
603 B
TOML
|
[global]
|
||
|
checkNewVersion = false
|
||
|
sendAnonymousUsage = false
|
||
|
|
||
|
[api]
|
||
|
insecure = true
|
||
|
|
||
|
[log]
|
||
|
level = "DEBUG"
|
||
|
noColor = true
|
||
|
|
||
|
[entryPoints]
|
||
|
|
||
|
[entryPoints.web]
|
||
|
address = ":8000"
|
||
|
|
||
|
[providers.file]
|
||
|
filename = "{{ .SelfFilename }}"
|
||
|
|
||
|
## dynamic configuration ##
|
||
|
|
||
|
[http.routers]
|
||
|
[http.routers.router]
|
||
|
service = "service1"
|
||
|
rule = "Path(`/whoami`)"
|
||
|
|
||
|
[http.services]
|
||
|
|
||
|
[http.services.service1.loadBalancer]
|
||
|
[[http.services.service1.loadBalancer.servers]]
|
||
|
url = "{{ .Server1 }}"
|
||
|
weight = 3
|
||
|
[[http.services.service1.loadBalancer.servers]]
|
||
|
url = "{{ .Server2 }}"
|
||
|
|