Skip to content

Commit

Permalink
Support _ as env variable sepparator
Browse files Browse the repository at this point in the history
  • Loading branch information
CosminLazar committed May 23, 2024
1 parent 966ebf2 commit b087736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl Settings {
let settings = Config::builder()
.add_source(File::with_name("config/default.toml"))
.add_source(File::with_name("config/secrets.toml").required(false))
.add_source(Environment::default())
.add_source(Environment::default().separator("_"))
.build()?;

settings.try_deserialize()
Expand Down

0 comments on commit b087736

Please sign in to comment.