feat: add server domain parameter
This commit is contained in:
parent
5978d178bc
commit
d676599bf5
|
@ -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. 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
|
# 3. secret: a unique secret which is used to authenticate webhook calls
|
||||||
pages = [
|
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]
|
[server]
|
||||||
|
@ -19,3 +19,4 @@ ip= "0.0.0.0"
|
||||||
# Minimum of two threads are advisable for top async performance but can work
|
# Minimum of two threads are advisable for top async performance but can work
|
||||||
# with one also.
|
# with one also.
|
||||||
workers = 2
|
workers = 2
|
||||||
|
domain = "demo.librepages.org"
|
||||||
|
|
|
@ -36,6 +36,7 @@ pub struct Server {
|
||||||
pub port: u32,
|
pub port: u32,
|
||||||
pub ip: String,
|
pub ip: String,
|
||||||
pub workers: Option<usize>,
|
pub workers: Option<usize>,
|
||||||
|
pub domain: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Server {
|
impl Server {
|
||||||
|
|
Loading…
Reference in New Issue