From 83c982da5b4b257920cdd45a007849a52e3b38c0 Mon Sep 17 00:00:00 2001 From: Steven Kreitzer Date: Wed, 4 Dec 2024 16:17:12 -0600 Subject: [PATCH] feat: allow env variables inside config --- config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 890592ca90..b27bd4a0ff 100644 --- a/config/config.go +++ b/config/config.go @@ -202,7 +202,8 @@ func LoadFile(filename string) (*Config, error) { if err != nil { return nil, err } - cfg, err := Load(string(content)) + expanded := os.ExpandEnv(string(content)) + cfg, err := Load(expanded) if err != nil { return nil, err }