diff options
author | Dessalines <tyhou13@gmx.com> | 2020-03-31 16:29:57 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-03-31 16:29:57 -0400 |
commit | a006f498b17ff0116cee6ac72b4eb835ba45146a (patch) | |
tree | 6f53b8876c7e141c71f6c86ef54d3033dcabc31f /server/src/settings.rs | |
parent | aab556bf777ee2f7e931a7149d664898dd94a304 (diff) | |
parent | 76bf71162ef187d2d363b29faa40d24fecdfba3b (diff) |
Merge branch 'nutomic-auto-setup' into dev
Diffstat (limited to 'server/src/settings.rs')
-rw-r--r-- | server/src/settings.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/src/settings.rs b/server/src/settings.rs index d04ea880..875323e9 100644 --- a/server/src/settings.rs +++ b/server/src/settings.rs @@ -8,6 +8,7 @@ static CONFIG_FILE: &str = "config/config.hjson"; #[derive(Debug, Deserialize)] pub struct Settings { + pub setup: Option<Setup>, pub database: Database, pub hostname: String, pub bind: IpAddr, @@ -20,6 +21,14 @@ pub struct Settings { } #[derive(Debug, Deserialize)] +pub struct Setup { + pub admin_username: String, + pub admin_password: String, + pub admin_email: Option<String>, + pub site_name: String, +} + +#[derive(Debug, Deserialize)] pub struct RateLimitConfig { pub message: i32, pub message_per_second: i32, |