Support mirroring request body
Co-authored-by: Mathieu Lonjaret <mathieu.lonjaret@gmail.com> Co-authored-by: Julien Salleyron <julien.salleyron@gmail.com>
This commit is contained in:
parent
09c07f45ee
commit
cf7f0f878a
20 changed files with 454 additions and 44 deletions
|
@ -23,6 +23,11 @@
|
|||
service = "mirror"
|
||||
rule = "Path(`/whoami`)"
|
||||
|
||||
[http.routers.router2]
|
||||
service = "mirrorWithMaxBody"
|
||||
rule = "Path(`/whoamiWithMaxBody`)"
|
||||
|
||||
|
||||
[http.services]
|
||||
[http.services.mirror.mirroring]
|
||||
service = "service1"
|
||||
|
@ -33,6 +38,17 @@
|
|||
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 }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue