From bc5f721de8996b48550b5069f5592caf2968e822 Mon Sep 17 00:00:00 2001 From: fx Date: Mon, 9 Oct 2023 13:07:54 +0200 Subject: added wol func and bad auth --- src/config.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index e69de29..4c79810 100644 --- a/src/config.rs +++ b/src/config.rs @@ -0,0 +1,11 @@ +use config::Config; +use once_cell::sync::Lazy; + +pub static SETTINGS: Lazy = Lazy::new(setup); + +fn setup() -> Config { + Config::builder() + .add_source(config::Environment::with_prefix("WEBOL").separator("_")) + .build() + .unwrap() +} \ No newline at end of file -- cgit v1.2.3