aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorfx <[email protected]>2023-10-09 13:07:54 +0200
committerfx <[email protected]>2023-10-09 13:07:54 +0200
commitbc5f721de8996b48550b5069f5592caf2968e822 (patch)
treefe7bf485cda800d6fff595c0573b9bca4a4c1dd0 /src/config.rs
parent159cb1b3c940440ebe03e5042c361be563324978 (diff)
downloadwebol-bc5f721de8996b48550b5069f5592caf2968e822.tar
webol-bc5f721de8996b48550b5069f5592caf2968e822.tar.gz
webol-bc5f721de8996b48550b5069f5592caf2968e822.zip
added wol func and bad auth
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs11
1 files changed, 11 insertions, 0 deletions
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 @@
1use config::Config;
2use once_cell::sync::Lazy;
3
4pub static SETTINGS: Lazy<Config> = Lazy::new(setup);
5
6fn setup() -> Config {
7 Config::builder()
8 .add_source(config::Environment::with_prefix("WEBOL").separator("_"))
9 .build()
10 .unwrap()
11} \ No newline at end of file