Make HTTP Keep-Alive timeout configurable for backend connections
This commit is contained in:
parent
84d7c65039
commit
f6436663eb
8 changed files with 149 additions and 0 deletions
31
integration/fixtures/timeout/keepalive.toml
Normal file
31
integration/fixtures/timeout/keepalive.toml
Normal file
|
@ -0,0 +1,31 @@
|
|||
[global]
|
||||
checkNewVersion = false
|
||||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
level = "DEBUG"
|
||||
|
||||
[serversTransport.forwardingTimeouts]
|
||||
idleConnTimeout = "{{ .IdleConnTimeout }}"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
address = ":8000"
|
||||
|
||||
[api]
|
||||
|
||||
[providers]
|
||||
[providers.file]
|
||||
|
||||
[http.routers]
|
||||
[http.routers.router1]
|
||||
Service = "keepalive"
|
||||
Rule = "PathPrefix(`/keepalive`)"
|
||||
|
||||
[http.services]
|
||||
[http.services.keepalive]
|
||||
[http.services.keepalive.LoadBalancer]
|
||||
passHostHeader = true
|
||||
[[http.services.keepalive.LoadBalancer.Servers]]
|
||||
URL = "{{ .KeepAliveServer }}"
|
||||
Weight = 1
|
Loading…
Add table
Add a link
Reference in a new issue