From f15601925c617ead91aa3109514bdc84153d5663 Mon Sep 17 00:00:00 2001 From: "Invis [Bitfly]" <162128378+invis-bitfly@users.noreply.github.com> Date: Wed, 8 Jan 2025 17:54:42 +0100 Subject: [PATCH] fix(config): prio env over yaml --- backend/pkg/commons/utils/config.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/pkg/commons/utils/config.go b/backend/pkg/commons/utils/config.go index 41b51cd57..c5f1da887 100644 --- a/backend/pkg/commons/utils/config.go +++ b/backend/pkg/commons/utils/config.go @@ -44,7 +44,10 @@ func readConfigFile(cfg *types.Config, path string) error { } func readConfigEnv(cfg *types.Config) error { - return envconfig.Process(context.Background(), cfg) + return envconfig.ProcessWith(context.Background(), &envconfig.Config{ + Target: cfg, + DefaultOverwrite: true, + }) } func readConfigSecrets(cfg *types.Config) error {