Console should also beable to be controlled by env var
This commit is contained in:
parent
a049610291
commit
b1ba08933a
@ -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