1
0
Fork 0

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:
Dmytro Tananayskiy 2020-03-05 18:03:08 +01:00 committed by Traefiker Bot
parent 09c07f45ee
commit cf7f0f878a
20 changed files with 454 additions and 44 deletions

View file

@ -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 }}"