aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorFxQnLr <[email protected]>2024-04-10 12:20:17 +0200
committerFxQnLr <[email protected]>2024-04-10 12:20:17 +0200
commitbd5ed2f47fe870776783a5b2a56c899126a51860 (patch)
tree398fa227d8df143ebf5d4ecfe8b6f03f88022e65 /src/config.rs
parent3428a637ce420baef9aa9f9803e71bd587867005 (diff)
downloadwebol-bd5ed2f47fe870776783a5b2a56c899126a51860.tar
webol-bd5ed2f47fe870776783a5b2a56c899126a51860.tar.gz
webol-bd5ed2f47fe870776783a5b2a56c899126a51860.zip
Closes #29. Usable Readme and hopefully versioned container
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 124893b..bfb28be 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -25,6 +25,7 @@ impl Config {
25 .set_default("pingtimeout", 10)? 25 .set_default("pingtimeout", 10)?
26 .set_default("pingthreshold", 1)? 26 .set_default("pingthreshold", 1)?
27 .set_default("timeoffset", 0)? 27 .set_default("timeoffset", 0)?
28 .set_default("auth.method", "none")?
28 .set_default("auth.secret", "")? 29 .set_default("auth.secret", "")?
29 .add_source(File::with_name("config.toml").required(false)) 30 .add_source(File::with_name("config.toml").required(false))
30 .add_source(File::with_name("config.dev.toml").required(false)) 31 .add_source(File::with_name("config.dev.toml").required(false))