2019-08-26 17:00:04 +00:00
|
|
|
[global]
|
|
|
|
checkNewVersion = false
|
|
|
|
sendAnonymousUsage = false
|
|
|
|
|
|
|
|
[api]
|
2019-09-06 13:08:04 +00:00
|
|
|
insecure = true
|
2019-08-26 17:00:04 +00:00
|
|
|
|
|
|
|
[log]
|
|
|
|
level = "DEBUG"
|
2022-11-21 17:36:05 +00:00
|
|
|
noColor = true
|
2019-08-26 17:00:04 +00:00
|
|
|
|
|
|
|
[entryPoints]
|
|
|
|
|
|
|
|
[entryPoints.web]
|
|
|
|
address = ":8000"
|
|
|
|
|
|
|
|
[providers.file]
|
|
|
|
filename = "{{ .SelfFilename }}"
|
|
|
|
|
|
|
|
## dynamic configuration ##
|
|
|
|
|
|
|
|
[http.routers]
|
|
|
|
[http.routers.router]
|
|
|
|
service = "mirror"
|
|
|
|
rule = "Path(`/whoami`)"
|
|
|
|
|
2020-03-05 17:03:08 +00:00
|
|
|
[http.routers.router2]
|
|
|
|
service = "mirrorWithMaxBody"
|
|
|
|
rule = "Path(`/whoamiWithMaxBody`)"
|
|
|
|
|
2024-09-02 14:36:06 +00:00
|
|
|
[http.routers.router3]
|
|
|
|
service = "mirrorWithoutBody"
|
|
|
|
rule = "Path(`/whoamiWithoutBody`)"
|
|
|
|
|
2020-03-05 17:03:08 +00:00
|
|
|
|
2019-08-26 17:00:04 +00:00
|
|
|
[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
|
|
|
|
|
2020-03-05 17:03:08 +00:00
|
|
|
[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
|
|
|
|
|
2024-09-02 14:36:06 +00:00
|
|
|
[http.services.mirrorWithoutBody.mirroring]
|
|
|
|
service = "service1"
|
|
|
|
mirrorBody = false
|
|
|
|
[[http.services.mirrorWithoutBody.mirroring.mirrors]]
|
|
|
|
name = "mirror1"
|
|
|
|
percent = 10
|
|
|
|
[[http.services.mirrorWithoutBody.mirroring.mirrors]]
|
|
|
|
name = "mirror2"
|
|
|
|
percent = 50
|
|
|
|
|
2020-03-05 17:03:08 +00:00
|
|
|
|
2019-08-26 17:00:04 +00:00
|
|
|
[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 }}"
|
|
|
|
|