feat: add server domain parameter

This commit is contained in:
Aravinth Manivannan 2022-09-07 01:58:25 +05:30
parent 5978d178bc
commit d676599bf5
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
2 changed files with 3 additions and 1 deletions

View File

@ -7,7 +7,7 @@ source_code = "https://github.com/realaravinth/pages"
# 3. path: the directory where you'd like Pages to clone the specified repository
# 3. secret: a unique secret which is used to authenticate webhook calls
pages = [
{ branch = "gh-pages", repo = "https://github.com/mCaptcha/website/", path ="/tmp/pages/mcaptcha/website", secret = "faee1b650ac586068a54cb160bd6353c5e16be7c64b49113fe57726e5393" },
{ branch = "gh-pages", domain="mcaptcha.org", repo = "https://github.com/mCaptcha/website/", path ="/tmp/pages/mcaptcha/website", secret = "faee1b650ac586068a54cb160bd6353c5e16be7c64b49113fe57726e5393" },
]
[server]
@ -19,3 +19,4 @@ ip= "0.0.0.0"
# Minimum of two threads are advisable for top async performance but can work
# with one also.
workers = 2
domain = "demo.librepages.org"

View File

@ -36,6 +36,7 @@ pub struct Server {
pub port: u32,
pub ip: String,
pub workers: Option<usize>,
pub domain: String,
}
impl Server {