feat: read survey uploader's settings

This commit is contained in:
Aravinth Manivannan
2023-10-17 19:09:22 +05:30
parent c56b04fa5a
commit b6a6705449
4 changed files with 184 additions and 0 deletions

View File

@@ -91,6 +91,12 @@ pub struct Redis {
pub pool: u32,
}
#[derive(Debug, Clone, Deserialize, Eq, PartialEq)]
pub struct Survey {
pub nodes: Vec<url::Url>,
pub rate_limit: u64,
}
#[derive(Debug, Clone, Deserialize, Eq, PartialEq)]
pub struct Settings {
pub debug: bool,
@@ -99,6 +105,7 @@ pub struct Settings {
pub allow_registration: bool,
pub allow_demo: bool,
pub database: Database,
pub survey: Survey,
pub redis: Option<Redis>,
pub server: Server,
pub captcha: Captcha,