From b1ba08933afd5e050bca4f97aae7687f507d5507 Mon Sep 17 00:00:00 2001 From: Joren Date: Mon, 7 Oct 2024 12:48:37 +0200 Subject: [PATCH] Console should also beable to be controlled by env var --- src/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config.go b/src/config.go index fc8a45f..1081f12 100644 --- a/src/config.go +++ b/src/config.go @@ -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 }