Poller #9

Merged
Joren merged 4 commits from Poller into main 2024-10-07 12:59:19 +02:00
Showing only changes of commit b1ba08933a - Show all commits

View File

@ -69,6 +69,9 @@ func overrideConfigWithEnv() {
if envTempBaseDir := os.Getenv("TEMP_BASE_DIR"); 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 != "" {
config.WatchFolder.Path = envWatchedFolder
}