feat(config): split on __, allowing for setting individual values in a table

This commit is contained in:
Matthias Ahouansou 2024-07-02 15:39:45 +01:00
parent 1f313c6807
commit 35ed731a46
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

@ -57,7 +57,7 @@ async fn main() {
))
.nested(),
)
.merge(Env::prefixed("CONDUIT_").global());
.merge(Env::prefixed("CONDUIT_").global().split("__"));
let config = match raw_config.extract::<Config>() {
Ok(s) => s,