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
}