Externalized web server config

This commit is contained in:
rzuasti
2026-02-26 16:30:51 -05:00
parent 7f754b3d17
commit 874a70969f
3 changed files with 31 additions and 6 deletions
+8
View File
@@ -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
// -----------------------------------------------------------