refactor: yaml configs

This commit is contained in:
2024-12-11 09:46:00 +00:00
parent 48d2fa3c42
commit 1b84e22ea9
15 changed files with 77 additions and 172 deletions

View File

@ -36,7 +36,7 @@ async fn main() -> Result<(), Error> {
pretty_env_logger::init();
let builder = Config::builder()
.add_source(config::File::with_name("config.toml"))
.add_source(config::File::with_name("config.yaml"))
.add_source(config::Environment::with_prefix("APP"))
.build()?;