summaryrefslogtreecommitdiff
path: root/src/config.rs
blob: 4c79810422dea7fad9f15423a428900808d00926 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
use config::Config;
use once_cell::sync::Lazy;

pub static SETTINGS: Lazy<Config> = Lazy::new(setup);

fn setup() -> Config {
    Config::builder()
        .add_source(config::Environment::with_prefix("WEBOL").separator("_"))
        .build()
        .unwrap()
}