From d676599bf50cbd19f0c5baf7de1d30d533f8946c Mon Sep 17 00:00:00 2001 From: realaravinth Date: Wed, 7 Sep 2022 01:58:25 +0530 Subject: [PATCH] feat: add server domain parameter --- config/default.toml | 3 ++- src/settings.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/default.toml b/config/default.toml index be5b307..2cd46e6 100644 --- a/config/default.toml +++ b/config/default.toml @@ -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" diff --git a/src/settings.rs b/src/settings.rs index 91c6a4d..a13e885 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -36,6 +36,7 @@ pub struct Server { pub port: u32, pub ip: String, pub workers: Option, + pub domain: String, } impl Server {