Constant pages::GIT_COMMIT_HASH [−][src]
pub const GIT_COMMIT_HASH: &str = "a5c8ee722db21a4242b4d28bb2891792f7a53c32";
diff --git a/pages/constant.GIT_COMMIT_HASH.html b/pages/constant.GIT_COMMIT_HASH.html index 29a72c5..41757d0 100644 --- a/pages/constant.GIT_COMMIT_HASH.html +++ b/pages/constant.GIT_COMMIT_HASH.html @@ -1,4 +1,4 @@
pub const GIT_COMMIT_HASH: &str = "a5c8ee722db21a4242b4d28bb2891792f7a53c32";
pub const GIT_COMMIT_HASH: &str = "3c40a32fba67ec55744c7b40183e83d6adbce9b6";
emmits build details of the bninary
pub struct Meta {
+ Struct Meta
Struct pages::meta::routes::Meta [−][src]
Fields
build_details: &'static str
health: &'static str
Implementations
Auto Trait Implementations
impl RefUnwindSafe for Meta
impl UnwindSafe for Meta
Blanket Implementations
Gets the TypeId
of self
. Read more
+}Fields
build_details: &'static str
health: &'static str
Implementations
Auto Trait Implementations
impl RefUnwindSafe for Meta
impl UnwindSafe for Meta
Blanket Implementations
Mutably borrows from an owned value. Read more
Performs the conversion.
diff --git a/pages/meta/struct.BuildDetails.html b/pages/meta/struct.BuildDetails.html
index eea260c..28a093f 100644
--- a/pages/meta/struct.BuildDetails.html
+++ b/pages/meta/struct.BuildDetails.html
@@ -1,9 +1,10 @@
BuildDetails in pages::meta - Rust
Struct pages::meta::BuildDetails [−][src]
pub struct BuildDetails {
+ Struct BuildDetails
Struct pages::meta::BuildDetails [−][src]
Fields
version: &'static str
git_commit_hash: &'static str
Trait Implementations
Fields
version: &'static str
git_commit_hash: &'static str
source_code: &'static str
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
diff --git a/pages/meta/struct.build_details.html b/pages/meta/struct.build_details.html
index 826e1f7..dd48178 100644
--- a/pages/meta/struct.build_details.html
+++ b/pages/meta/struct.build_details.html
@@ -1,7 +1,7 @@
build_details in pages::meta - Rust
Struct pages::meta::build_details [−][src]
pub struct build_details;
Expand description
emmits build details of the bninary
-Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for build_details
impl Send for build_details
impl Sync for build_details
impl Unpin for build_details
impl UnwindSafe for build_details
Blanket Implementations
Gets the TypeId
of self
. Read more
+ Struct build_details
Struct pages::meta::build_details [−][src]
pub struct build_details;
Expand description
emmits build details of the bninary
+Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for build_details
impl Send for build_details
impl Sync for build_details
impl Unpin for build_details
impl UnwindSafe for build_details
Blanket Implementations
Mutably borrows from an owned value. Read more
Performs the conversion.
diff --git a/pages/settings/fn.check_url.html b/pages/settings/fn.check_url.html
index 601b679..ee3580c 100644
--- a/pages/settings/fn.check_url.html
+++ b/pages/settings/fn.check_url.html
@@ -1,4 +1,4 @@
check_url in pages::settings - Rust
+
\ No newline at end of file
diff --git a/pages/settings/index.html b/pages/settings/index.html
index c487cb0..4b60d78 100644
--- a/pages/settings/index.html
+++ b/pages/settings/index.html
@@ -1,6 +1,6 @@
pages::settings - Rust
Module pages::settings [−][src]
Structs
+ Module settings
\ No newline at end of file
diff --git a/pages/settings/struct.Server.html b/pages/settings/struct.Server.html
index 3e85460..586fcfe 100644
--- a/pages/settings/struct.Server.html
+++ b/pages/settings/struct.Server.html
@@ -1,12 +1,10 @@
Server in pages::settings - Rust
Struct pages::settings::Server [−][src]
pub struct Server {
+ Struct Server
Struct pages::settings::Server [−][src]
pub struct Server {
pub port: u32,
- pub domain: String,
pub ip: String,
- pub proxy_has_tls: bool,
pub workers: Option<usize>,
-}
Fields
port: u32
domain: String
ip: String
proxy_has_tls: bool
workers: Option<usize>
Implementations
Trait Implementations
Returns a copy of the value. Read more
+}Fields
port: u32
ip: String
workers: Option<usize>
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
diff --git a/pages/settings/struct.Settings.html b/pages/settings/struct.Settings.html
index d05048c..4e3b750 100644
--- a/pages/settings/struct.Settings.html
+++ b/pages/settings/struct.Settings.html
@@ -1,14 +1,13 @@
Settings in pages::settings - Rust
Struct pages::settings::Settings [−][src]
pub struct Settings {
- pub debug: bool,
+ Struct Settings
Struct pages::settings::Settings [−][src]
Fields
debug: bool
server: Server
source_code: String
pages: Vec<Page>
Implementations
Trait Implementations
Returns a copy of the value. Read more
+}Fields
server: Server
source_code: String
pages: Vec<Page>
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
+
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Settings
impl UnwindSafe for Settings
Blanket Implementations
Mutably borrows from an owned value. Read more
diff --git a/pages/struct.Settings.html b/pages/struct.Settings.html
index 01b75a4..7430404 100644
--- a/pages/struct.Settings.html
+++ b/pages/struct.Settings.html
@@ -1,14 +1,13 @@
Settings in pages - Rust
Struct pages::Settings [−][src]
pub struct Settings {
- pub debug: bool,
+ Struct Settings
Struct pages::Settings [−][src]
Fields
debug: bool
server: Server
source_code: String
pages: Vec<Page>
Implementations
Trait Implementations
Returns a copy of the value. Read more
+}Fields
server: Server
source_code: String
pages: Vec<Page>
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
+
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Settings
impl UnwindSafe for Settings
Blanket Implementations
Mutably borrows from an owned value. Read more
diff --git a/search-index.js b/search-index.js
index dafaa15..38455ee 100644
--- a/search-index.js
+++ b/search-index.js
@@ -1,4 +1,4 @@
var searchIndex = JSON.parse('{\
-"pages":{"doc":"","t":[17,17,17,17,17,3,3,17,17,12,11,11,12,0,11,11,5,11,5,0,0,12,0,12,5,0,12,11,11,11,11,3,11,11,11,11,12,11,11,11,11,11,11,11,11,11,0,12,11,5,11,11,11,11,11,11,11,3,11,11,3,11,11,11,11,11,11,11,11,12,11,3,11,11,11,11,3,11,11,11,11,11,11,12,11,11,11,0,11,5,11,11,11,11,11,11,11,12,11,11,3,11,11,12,11,12,11,11,11,11,11,11,3,11,11,11,12,11,11,11,11,11,11,11,11,12,12,12,11,11,11,11,11,17,3,11,11,12,11,11,12,11,5,11,11,11,11,3,3,11,11,11,11,5,11,11,11,11,12,11,11,12,11,11,11,11,11,11,11,12,11,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,12],"n":["CACHE_AGE","GIT_COMMIT_HASH","PKG_DESCRIPTION","PKG_HOMEPAGE","PKG_NAME","SETTINGS","Settings","V1_API_ROUTES","VERSION","__private_field","borrow","borrow_mut","debug","deploy","deref","from","get_json_err","into","main","meta","page","pages","routes","server","services","settings","source_code","try_from","try_into","type_id","vzip","DeployEvent","borrow","borrow","borrow_mut","borrow_mut","branch","clone","clone_into","deserialize","fmt","from","from","into","into","register","routes","secret","serialize","services","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","update","vzip","vzip","Deploy","borrow","borrow_mut","from","into","new","try_from","try_into","type_id","update","vzip","BuildDetails","borrow","borrow","borrow_mut","borrow_mut","build_details","clone","clone_into","deserialize","fmt","from","from","git_commit_hash","into","into","register","routes","serialize","services","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","version","vzip","vzip","Meta","borrow","borrow_mut","build_details","from","health","into","new","try_from","try_into","type_id","vzip","Page","_fetch_upstream","borrow","borrow_mut","branch","clone","clone_into","create_repo","deserialize","fetch_upstream","fmt","from","into","path","repo","secret","to_owned","try_from","try_into","type_id","vzip","ROUTES","Routes","borrow","borrow_mut","deploy","from","into","meta","new","services","try_from","try_into","type_id","vzip","Server","Settings","borrow","borrow","borrow_mut","borrow_mut","check_url","clone","clone","clone_into","clone_into","debug","deserialize","deserialize","domain","fmt","fmt","from","from","get_ip","into","into","ip","new","pages","port","proxy_has_tls","server","source_code","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","workers"],"q":["pages","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","pages::deploy","","","","","","","","","","","","","","","","","","","","","","","","","","","","","pages::deploy::routes","","","","","","","","","","","pages::meta","","","","","","","","","","","","","","","","","","","","","","","","","","","","","pages::meta::routes","","","","","","","","","","","","pages::page","","","","","","","","","","","","","","","","","","","","","pages::routes","","","","","","","","","","","","","","pages::settings","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"d":["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","emmits build details of the bninary","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[0,0,0,0,0,0,0,0,0,1,1,1,2,0,1,1,0,1,0,0,0,2,0,2,0,0,2,1,1,1,1,0,3,4,3,4,3,3,3,3,3,3,4,3,4,4,0,3,3,0,3,3,4,3,4,3,4,0,3,4,0,5,5,5,5,5,5,5,5,5,5,0,6,7,6,7,0,6,6,6,6,6,7,6,6,7,7,0,6,0,6,6,7,6,7,6,7,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,0,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,0,0,10,10,10,10,10,10,10,0,10,10,10,10,0,0,11,2,11,2,0,11,2,11,2,2,11,2,11,11,2,11,2,11,11,2,11,2,2,11,11,2,2,11,2,11,2,11,2,11,2,11,2,11],"f":[null,null,null,null,null,null,null,null,null,null,[[]],[[]],null,null,[[],["settings",3]],[[]],[[],["jsonconfig",3]],[[]],[[],["result",6]],null,null,null,null,null,[[["serviceconfig",3]]],null,null,[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,[[]],[[]],[[]],[[]],null,[[],["deployevent",3]],[[]],[[],["result",4]],[[["formatter",3]],["result",6]],[[]],[[]],[[]],[[]],[[["appservice",3]]],null,null,[[],["result",4]],[[["serviceconfig",3]]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],null,[[]],[[]],null,[[]],[[]],[[]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],null,[[]],null,[[]],[[]],[[]],[[]],null,[[],["builddetails",3]],[[]],[[],["result",4]],[[["formatter",3]],["result",6]],[[]],[[]],null,[[]],[[]],[[["appservice",3]]],null,[[],["result",4]],[[["serviceconfig",3]]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],null,[[]],[[]],null,[[]],[[]],null,[[]],null,[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,[[["repository",3],["str",15]]],[[]],[[]],null,[[],["page",3]],[[]],[[],["repository",3]],[[],["result",4]],[[["str",15]]],[[["formatter",3]],["result",6]],[[]],[[]],null,null,null,[[]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,null,[[]],[[]],null,[[]],[[]],null,[[]],[[["serviceconfig",3]]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,null,[[]],[[]],[[]],[[]],[[["config",3]]],[[],["server",3]],[[],["settings",3]],[[]],[[]],null,[[],["result",4]],[[],["result",4]],null,[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[]],[[]],[[],["string",3]],[[]],[[]],null,[[],["result",4,[["configerror",4]]]],null,null,null,null,null,[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[]],[[]],null],"p":[[3,"SETTINGS"],[3,"Settings"],[3,"DeployEvent"],[3,"update"],[3,"Deploy"],[3,"BuildDetails"],[3,"build_details"],[3,"Meta"],[3,"Page"],[3,"Routes"],[3,"Server"]]}\
+"pages":{"doc":"","t":[17,17,17,17,17,3,3,17,17,12,11,11,0,11,11,5,11,5,0,0,12,0,12,5,0,12,11,11,11,11,3,11,11,11,11,12,11,11,11,11,11,11,11,11,11,0,12,11,5,11,11,11,11,11,11,11,3,11,11,3,11,11,11,11,11,11,11,11,12,11,3,11,11,11,11,3,11,11,11,11,11,11,12,11,11,11,0,11,5,12,11,11,11,11,11,11,11,12,11,11,3,11,11,12,11,12,11,11,11,11,11,11,3,11,11,11,12,11,11,11,11,11,11,11,11,12,12,12,11,11,11,11,11,17,3,11,11,12,11,11,12,11,5,11,11,11,11,3,3,11,11,11,11,5,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,12,12,12,12,11,11,11,11,11,11,11,11,11,11,12],"n":["CACHE_AGE","GIT_COMMIT_HASH","PKG_DESCRIPTION","PKG_HOMEPAGE","PKG_NAME","SETTINGS","Settings","V1_API_ROUTES","VERSION","__private_field","borrow","borrow_mut","deploy","deref","from","get_json_err","into","main","meta","page","pages","routes","server","services","settings","source_code","try_from","try_into","type_id","vzip","DeployEvent","borrow","borrow","borrow_mut","borrow_mut","branch","clone","clone_into","deserialize","fmt","from","from","into","into","register","routes","secret","serialize","services","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","update","vzip","vzip","Deploy","borrow","borrow_mut","from","into","new","try_from","try_into","type_id","update","vzip","BuildDetails","borrow","borrow","borrow_mut","borrow_mut","build_details","clone","clone_into","deserialize","fmt","from","from","git_commit_hash","into","into","register","routes","serialize","services","source_code","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","version","vzip","vzip","Meta","borrow","borrow_mut","build_details","from","health","into","new","try_from","try_into","type_id","vzip","Page","_fetch_upstream","borrow","borrow_mut","branch","clone","clone_into","create_repo","deserialize","fetch_upstream","fmt","from","into","path","repo","secret","to_owned","try_from","try_into","type_id","vzip","ROUTES","Routes","borrow","borrow_mut","deploy","from","into","meta","new","services","try_from","try_into","type_id","vzip","Server","Settings","borrow","borrow","borrow_mut","borrow_mut","check_url","clone","clone","clone_into","clone_into","deserialize","deserialize","fmt","fmt","from","from","get_ip","into","into","ip","new","pages","port","server","source_code","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","workers"],"q":["pages","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","pages::deploy","","","","","","","","","","","","","","","","","","","","","","","","","","","","","pages::deploy::routes","","","","","","","","","","","pages::meta","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","pages::meta::routes","","","","","","","","","","","","pages::page","","","","","","","","","","","","","","","","","","","","","pages::routes","","","","","","","","","","","","","","pages::settings","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"d":["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","emmits build details of the bninary","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[0,0,0,0,0,0,0,0,0,1,1,1,0,1,1,0,1,0,0,0,2,0,2,0,0,2,1,1,1,1,0,3,4,3,4,3,3,3,3,3,3,4,3,4,4,0,3,3,0,3,3,4,3,4,3,4,0,3,4,0,5,5,5,5,5,5,5,5,5,5,0,6,7,6,7,0,6,6,6,6,6,7,6,6,7,7,0,6,0,6,6,6,7,6,7,6,7,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,0,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,0,0,10,10,10,10,10,10,10,0,10,10,10,10,0,0,11,2,11,2,0,11,2,11,2,11,2,11,2,11,2,11,11,2,11,2,2,11,2,2,11,2,11,2,11,2,11,2,11,2,11],"f":[null,null,null,null,null,null,null,null,null,null,[[]],[[]],null,[[],["settings",3]],[[]],[[],["jsonconfig",3]],[[]],[[],["result",6]],null,null,null,null,null,[[["serviceconfig",3]]],null,null,[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,[[]],[[]],[[]],[[]],null,[[],["deployevent",3]],[[]],[[],["result",4]],[[["formatter",3]],["result",6]],[[]],[[]],[[]],[[]],[[["appservice",3]]],null,null,[[],["result",4]],[[["serviceconfig",3]]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],null,[[]],[[]],null,[[]],[[]],[[]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],null,[[]],null,[[]],[[]],[[]],[[]],null,[[],["builddetails",3]],[[]],[[],["result",4]],[[["formatter",3]],["result",6]],[[]],[[]],null,[[]],[[]],[[["appservice",3]]],null,[[],["result",4]],[[["serviceconfig",3]]],null,[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],null,[[]],[[]],null,[[]],[[]],null,[[]],null,[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,[[["repository",3],["str",15]]],[[]],[[]],null,[[],["page",3]],[[]],[[],["repository",3]],[[],["result",4]],[[["str",15]]],[[["formatter",3]],["result",6]],[[]],[[]],null,null,null,[[]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,null,[[]],[[]],null,[[]],[[]],null,[[]],[[["serviceconfig",3]]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,null,[[]],[[]],[[]],[[]],[[["config",3]]],[[],["server",3]],[[],["settings",3]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[]],[[]],[[],["string",3]],[[]],[[]],null,[[],["result",4,[["configerror",4]]]],null,null,null,null,[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[]],[[]],null],"p":[[3,"SETTINGS"],[3,"Settings"],[3,"DeployEvent"],[3,"update"],[3,"Deploy"],[3,"BuildDetails"],[3,"build_details"],[3,"Meta"],[3,"Page"],[3,"Routes"],[3,"Server"]]}\
}');
if (window.initSearch) {window.initSearch(searchIndex)};
\ No newline at end of file
diff --git a/src/pages/deploy.rs.html b/src/pages/deploy.rs.html
index 341c760..1b2c9d0 100644
--- a/src/pages/deploy.rs.html
+++ b/src/pages/deploy.rs.html
@@ -111,7 +111,7 @@
109
110
/*
- * Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
+ * Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
diff --git a/src/pages/main.rs.html b/src/pages/main.rs.html
index 338f8e1..1f6c2b3 100644
--- a/src/pages/main.rs.html
+++ b/src/pages/main.rs.html
@@ -93,7 +93,7 @@
91
92
/*
- * Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
+ * Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
diff --git a/src/pages/meta.rs.html b/src/pages/meta.rs.html
index 8999f6b..ea78866 100644
--- a/src/pages/meta.rs.html
+++ b/src/pages/meta.rs.html
@@ -78,8 +78,10 @@
76
77
78
+79
+80
/*
- * Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
+ * Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
@@ -103,6 +105,7 @@
pub struct BuildDetails {
pub version: &'static str,
pub git_commit_hash: &'static str,
+ pub source_code: &'static str,
}
pub mod routes {
@@ -127,6 +130,7 @@
let build = BuildDetails {
version: VERSION,
git_commit_hash: GIT_COMMIT_HASH,
+ source_code: &crate::SETTINGS.source_code,
};
HttpResponse::Ok().json(build)
}
diff --git a/src/pages/page.rs.html b/src/pages/page.rs.html
index cc441a6..03c3fa1 100644
--- a/src/pages/page.rs.html
+++ b/src/pages/page.rs.html
@@ -78,7 +78,7 @@
76
77
/*
- * Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
+ * Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
diff --git a/src/pages/routes.rs.html b/src/pages/routes.rs.html
index 617e46d..019fd78 100644
--- a/src/pages/routes.rs.html
+++ b/src/pages/routes.rs.html
@@ -42,7 +42,7 @@
40
41
/*
- * Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
+ * Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
diff --git a/src/pages/settings.rs.html b/src/pages/settings.rs.html
index bdd873f..33ea7f7 100644
--- a/src/pages/settings.rs.html
+++ b/src/pages/settings.rs.html
@@ -112,18 +112,8 @@
110
111
112
-113
-114
-115
-116
-117
-118
-119
-120
-121
-122
/*
- * Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
+ * Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
@@ -151,9 +141,7 @@
#[derive(Debug, Clone, Deserialize)]
pub struct Server {
pub port: u32,
- pub domain: String,
pub ip: String,
- pub proxy_has_tls: bool,
pub workers: Option<usize>,
}
@@ -166,8 +154,6 @@
#[derive(Debug, Clone, Deserialize)]
pub struct Settings {
- pub debug: bool,
- // pub database: Database,
pub server: Server,
pub source_code: String,
pub pages: Vec<Page>,
@@ -177,16 +163,10 @@
impl Settings {
pub fn new() -> Result<Self, ConfigError> {
let mut s = Config::new();
-
- // setting default values
- #[cfg(test)]
- s.set_default("database.pool", 2.to_string())
- .expect("Couldn't get the number of CPUs");
-
const CURRENT_DIR: &str = "./config/default.toml";
const ETC: &str = "/etc/static-pages/config.toml";
- if let Ok(path) = env::var("ATHENA_CONFIG") {
+ if let Ok(path) = env::var("PAGES__CONFIG") {
s.merge(File::with_name(&path))?;
} else if Path::new(CURRENT_DIR).exists() {
// merging default config from file