mirror of
https://github.com/containous/traefik.git
synced 2024-12-25 23:21:40 +03:00
cf7f0f878a
Co-authored-by: Mathieu Lonjaret <mathieu.lonjaret@gmail.com> Co-authored-by: Julien Salleyron <julien.salleyron@gmail.com>
62 lines
1.3 KiB
TOML
62 lines
1.3 KiB
TOML
[global]
|
|
checkNewVersion = false
|
|
sendAnonymousUsage = false
|
|
|
|
[api]
|
|
insecure = true
|
|
|
|
[log]
|
|
level = "DEBUG"
|
|
|
|
[entryPoints]
|
|
|
|
[entryPoints.web]
|
|
address = ":8000"
|
|
|
|
[providers.file]
|
|
filename = "{{ .SelfFilename }}"
|
|
|
|
## dynamic configuration ##
|
|
|
|
[http.routers]
|
|
[http.routers.router]
|
|
service = "mirror"
|
|
rule = "Path(`/whoami`)"
|
|
|
|
[http.routers.router2]
|
|
service = "mirrorWithMaxBody"
|
|
rule = "Path(`/whoamiWithMaxBody`)"
|
|
|
|
|
|
[http.services]
|
|
[http.services.mirror.mirroring]
|
|
service = "service1"
|
|
[[http.services.mirror.mirroring.mirrors]]
|
|
name = "mirror1"
|
|
percent = 10
|
|
[[http.services.mirror.mirroring.mirrors]]
|
|
name = "mirror2"
|
|
percent = 50
|
|
|
|
[http.services.mirrorWithMaxBody.mirroring]
|
|
service = "service1"
|
|
maxBodySize = 8
|
|
[[http.services.mirrorWithMaxBody.mirroring.mirrors]]
|
|
name = "mirror1"
|
|
percent = 10
|
|
[[http.services.mirrorWithMaxBody.mirroring.mirrors]]
|
|
name = "mirror2"
|
|
percent = 50
|
|
|
|
|
|
[http.services.service1.loadBalancer]
|
|
[[http.services.service1.loadBalancer.servers]]
|
|
url = "{{ .MainServer }}"
|
|
[http.services.mirror1.loadBalancer]
|
|
[[http.services.mirror1.loadBalancer.servers]]
|
|
url = "{{ .Mirror1Server }}"
|
|
[http.services.mirror2.loadBalancer]
|
|
[[http.services.mirror2.loadBalancer.servers]]
|
|
url = "{{ .Mirror2Server }}"
|
|
|