|
|
|
@ -300,11 +300,11 @@ Should only be used for testing.`)
|
|
|
|
|
|
|
|
|
|
// SetDefaults provides default values for environment variables
|
|
|
|
|
func SetDefaults() {
|
|
|
|
|
day := time.Hour * 24
|
|
|
|
|
day := (time.Hour * 24).Seconds()
|
|
|
|
|
viper.AutomaticEnv()
|
|
|
|
|
viper.SetDefault("DOCKER_HOST", "unix:///var/run/docker.sock")
|
|
|
|
|
viper.SetDefault("DOCKER_API_VERSION", DockerAPIMinVersion)
|
|
|
|
|
viper.SetDefault("WATCHTOWER_POLL_INTERVAL", day.Seconds())
|
|
|
|
|
viper.SetDefault("WATCHTOWER_POLL_INTERVAL", day)
|
|
|
|
|
viper.SetDefault("WATCHTOWER_TIMEOUT", time.Second*10)
|
|
|
|
|
viper.SetDefault("WATCHTOWER_NOTIFICATIONS", []string{})
|
|
|
|
|
viper.SetDefault("WATCHTOWER_NOTIFICATIONS_LEVEL", "info")
|
|
|
|
|