1
0
mirror of https://github.com/containous/traefik.git synced 2025-01-08 21:17:56 +03:00

Fixes docker swarm mode refresh second for KV.

This commit is contained in:
Ludovic Fernandez 2019-01-29 17:08:08 +01:00 committed by Traefiker Bot
parent 0de1ff8634
commit 5d4423910d

View File

@ -213,6 +213,12 @@ func (c *Configuration) SetEffectiveConfiguration(configFile string) {
}
}
if c.Providers.Docker != nil {
if c.Providers.Docker.SwarmModeRefreshSeconds <= 0 {
c.Providers.Docker.SwarmModeRefreshSeconds = 15
}
}
if c.Providers.File != nil {
c.Providers.File.TraefikFile = configFile
}