fix: ensure LLM_PROXY__ENCRYPTION_KEY is correctly loaded from env
Some checks failed
CI / Lint (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Build (push) Has been cancelled

Explicitly bound the encryption_key to handle the double underscore convention in Viper.
This commit is contained in:
2026-03-19 11:04:57 -04:00
parent 4f5b55d40f
commit c7c244992a

View File

@@ -111,6 +111,9 @@ func Load() (*Config, error) {
v.SetEnvKeyReplacer(strings.NewReplacer(".", "__"))
v.AutomaticEnv()
// Explicitly bind top-level keys that might use double underscores in .env
v.BindEnv("encryption_key", "LLM_PROXY__ENCRYPTION_KEY")
// Config file
v.SetConfigName("config")
v.SetConfigType("toml")