feat: add support email config param
This commit is contained in:
parent
04d7f872d5
commit
1ada27924e
2 changed files with 5 additions and 3 deletions
|
@ -2,6 +2,7 @@ debug = true
|
||||||
allow_registration = true
|
allow_registration = true
|
||||||
# source code of your copy of pages server.
|
# source code of your copy of pages server.
|
||||||
source_code = "https://github.com/realaravinth/pages"
|
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:
|
# 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
|
# 1. branch: the branch in the Git repository which contains the website files
|
||||||
|
|
|
@ -33,7 +33,7 @@ use url::Url;
|
||||||
use crate::errors::*;
|
use crate::errors::*;
|
||||||
use crate::page::Page;
|
use crate::page::Page;
|
||||||
|
|
||||||
#[derive(Debug, Clone, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
pub struct Server {
|
pub struct Server {
|
||||||
pub port: u32,
|
pub port: u32,
|
||||||
pub ip: String,
|
pub ip: String,
|
||||||
|
@ -68,16 +68,17 @@ impl DBType {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
pub struct Database {
|
pub struct Database {
|
||||||
pub url: String,
|
pub url: String,
|
||||||
pub pool: u32,
|
pub pool: u32,
|
||||||
pub database_type: DBType,
|
pub database_type: DBType,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
pub struct Settings {
|
pub struct Settings {
|
||||||
pub allow_registration: bool,
|
pub allow_registration: bool,
|
||||||
|
pub support_email: String,
|
||||||
pub debug: bool,
|
pub debug: bool,
|
||||||
pub server: Server,
|
pub server: Server,
|
||||||
pub source_code: String,
|
pub source_code: String,
|
||||||
|
|
Loading…
Reference in a new issue