fix: ensure LLM_PROXY__ENCRYPTION_KEY is correctly loaded from env
Explicitly bound the encryption_key to handle the double underscore convention in Viper.
This commit is contained in:
@@ -111,6 +111,9 @@ func Load() (*Config, error) {
|
|||||||
v.SetEnvKeyReplacer(strings.NewReplacer(".", "__"))
|
v.SetEnvKeyReplacer(strings.NewReplacer(".", "__"))
|
||||||
v.AutomaticEnv()
|
v.AutomaticEnv()
|
||||||
|
|
||||||
|
// Explicitly bind top-level keys that might use double underscores in .env
|
||||||
|
v.BindEnv("encryption_key", "LLM_PROXY__ENCRYPTION_KEY")
|
||||||
|
|
||||||
// Config file
|
// Config file
|
||||||
v.SetConfigName("config")
|
v.SetConfigName("config")
|
||||||
v.SetConfigType("toml")
|
v.SetConfigType("toml")
|
||||||
|
|||||||
Reference in New Issue
Block a user