forked from Ivasoft/traefik
Support configuring a HTTP client timeout in the Docker provider
This commit is contained in:
@@ -210,6 +210,10 @@ func (c *Configuration) SetEffectiveConfiguration() {
|
||||
if c.Providers.Docker.SwarmModeRefreshSeconds <= 0 {
|
||||
c.Providers.Docker.SwarmModeRefreshSeconds = ptypes.Duration(15 * time.Second)
|
||||
}
|
||||
|
||||
if c.Providers.Docker.HTTPClientTimeout <= 0 {
|
||||
c.Providers.Docker.HTTPClientTimeout = ptypes.Duration(32 * time.Second)
|
||||
}
|
||||
}
|
||||
|
||||
if c.Providers.Rancher != nil {
|
||||
|
||||
Reference in New Issue
Block a user