mirror of
https://github.com/v0l/route96.git
synced 2025-06-21 21:26:27 +00:00
refactor: yaml configs
This commit is contained in:
@ -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()?;
|
||||
|
||||
|
Reference in New Issue
Block a user