Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Commit 6f971a5

Browse files
committed
Use __ for splitting keys in env vars
1 parent 1c4b5ae commit 6f971a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async fn main() -> anyhow::Result<()> {
1515

1616
let config: brioche_cache_server::config::Config = figment::Figment::new()
1717
.merge(figment::providers::Toml::file("config.toml"))
18-
.merge(figment::providers::Env::prefixed("BRIOCHE_CACHE_SERVER_"))
18+
.merge(figment::providers::Env::prefixed("BRIOCHE_CACHE_SERVER_").split("__"))
1919
.extract()?;
2020

2121
const DEFAULT_TRACING_DIRECTIVE: &str = concat!(env!("CARGO_CRATE_NAME"), "=info,warn");

0 commit comments

Comments
 (0)