Poller #9
@ -69,6 +69,9 @@ func overrideConfigWithEnv() {
|
|||||||
if envTempBaseDir := os.Getenv("TEMP_BASE_DIR"); envTempBaseDir != "" {
|
if envTempBaseDir := os.Getenv("TEMP_BASE_DIR"); envTempBaseDir != "" {
|
||||||
config.General.TempBaseDir = envTempBaseDir
|
config.General.TempBaseDir = envTempBaseDir
|
||||||
}
|
}
|
||||||
|
if envEnableConsole := os.Getenv("ENABLE_CONSOLE"); envEnableConsole != "" {
|
||||||
|
config.General.EnableConsole = strings.ToLower(envEnableConsole) == "true"
|
||||||
|
}
|
||||||
if envWatchedFolder := os.Getenv("WATCHED_FOLDER"); envWatchedFolder != "" {
|
if envWatchedFolder := os.Getenv("WATCHED_FOLDER"); envWatchedFolder != "" {
|
||||||
config.WatchFolder.Path = envWatchedFolder
|
config.WatchFolder.Path = envWatchedFolder
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user