feat: add support email config param

This commit is contained in:
Aravinth Manivannan 2022-09-16 14:49:13 +05:30
parent 04d7f872d5
commit 1ada27924e
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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,