diff --git a/config/default.toml b/config/default.toml index 6b3c0f8..8b364ed 100644 --- a/config/default.toml +++ b/config/default.toml @@ -2,6 +2,7 @@ debug = true allow_registration = true # source code of your copy of pages server. source_code = "https://github.com/realaravinth/pages" +support_email = "support@librepages.example.org" # To deploy a website from a Git repository, please provide the following details: # 1. branch: the branch in the Git repository which contains the website files diff --git a/src/settings.rs b/src/settings.rs index 1cb0290..16d17a8 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -33,7 +33,7 @@ use url::Url; use crate::errors::*; use crate::page::Page; -#[derive(Debug, Clone, Deserialize)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct Server { pub port: u32, pub ip: String, @@ -68,16 +68,17 @@ impl DBType { } } -#[derive(Debug, Clone, Deserialize)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct Database { pub url: String, pub pool: u32, pub database_type: DBType, } -#[derive(Debug, Clone, Deserialize)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct Settings { pub allow_registration: bool, + pub support_email: String, pub debug: bool, pub server: Server, pub source_code: String,