Adds mirroring service
This commit is contained in:
parent
fd24b1898e
commit
602a2ea541
10 changed files with 465 additions and 10 deletions
44
integration/fixtures/mirror.toml
Normal file
44
integration/fixtures/mirror.toml
Normal file
|
@ -0,0 +1,44 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[api]
|
||||
|
||||
[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.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.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 }}"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue