mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Externalized web server config
This commit is contained in:
@@ -41,6 +41,13 @@ pub struct Notifications {
|
||||
pub notify_when_not_seen_for: DurationString,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Clone)]
|
||||
pub struct WebServer {
|
||||
pub ip_address: String,
|
||||
pub port: u16,
|
||||
pub api_key: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Clone)]
|
||||
pub struct Settings {
|
||||
pub database: Database,
|
||||
@@ -48,6 +55,7 @@ pub struct Settings {
|
||||
pub log: Log,
|
||||
pub timings: Timings,
|
||||
pub notifications: Notifications,
|
||||
pub web_server: WebServer,
|
||||
}
|
||||
// End configuration structure
|
||||
// -----------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user