From 1d290a257b5d9a8546be4a358d388935bb588276 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Tue, 29 Mar 2022 12:18:05 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=203c40a?= =?UTF-8?q?32fba67ec55744c7b40183e83d6adbce9b6=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/constant.GIT_COMMIT_HASH.html | 2 +- pages/meta/fn.services.html | 2 +- pages/meta/index.html | 2 +- pages/meta/routes/index.html | 2 +- pages/meta/routes/struct.Meta.html | 4 ++-- pages/meta/struct.BuildDetails.html | 5 +++-- pages/meta/struct.build_details.html | 4 ++-- pages/settings/fn.check_url.html | 2 +- pages/settings/index.html | 2 +- pages/settings/struct.Server.html | 6 ++---- pages/settings/struct.Settings.html | 9 ++++----- pages/struct.Settings.html | 9 ++++----- search-index.js | 2 +- src/pages/deploy.rs.html | 2 +- src/pages/main.rs.html | 2 +- src/pages/meta.rs.html | 6 +++++- src/pages/page.rs.html | 2 +- src/pages/routes.rs.html | 2 +- src/pages/settings.rs.html | 24 ++---------------------- 19 files changed, 35 insertions(+), 54 deletions(-) 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 @@ GIT_COMMIT_HASH in pages - Rust

Constant pages::GIT_COMMIT_HASH[][src]

pub const GIT_COMMIT_HASH: &str = "a5c8ee722db21a4242b4d28bb2891792f7a53c32";
+

Constant pages::GIT_COMMIT_HASH[][src]

pub const GIT_COMMIT_HASH: &str = "3c40a32fba67ec55744c7b40183e83d6adbce9b6";
\ No newline at end of file diff --git a/pages/meta/fn.services.html b/pages/meta/fn.services.html index 2c1f73f..04f4c60 100644 --- a/pages/meta/fn.services.html +++ b/pages/meta/fn.services.html @@ -1,4 +1,4 @@ services in pages::meta - Rust

Function pages::meta::services[][src]

pub fn services(cfg: &mut ServiceConfig)
+

Function pages::meta::services[][src]

pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/pages/meta/index.html b/pages/meta/index.html index d21312e..f4ae04f 100644 --- a/pages/meta/index.html +++ b/pages/meta/index.html @@ -1,6 +1,6 @@ pages::meta - Rust

Module pages::meta[][src]

Modules

+

Module meta

Module pages::meta[][src]

Modules

Structs

emmits build details of the bninary

Functions

diff --git a/pages/meta/routes/index.html b/pages/meta/routes/index.html index 7ed7652..9f6e668 100644 --- a/pages/meta/routes/index.html +++ b/pages/meta/routes/index.html @@ -1,5 +1,5 @@ pages::meta::routes - Rust

Module pages::meta::routes[][src]

Structs

+

Module routes

\ No newline at end of file diff --git a/pages/meta/routes/struct.Meta.html b/pages/meta/routes/struct.Meta.html index d57e536..83be20f 100644 --- a/pages/meta/routes/struct.Meta.html +++ b/pages/meta/routes/struct.Meta.html @@ -1,9 +1,9 @@ Meta in pages::meta::routes - Rust

Struct pages::meta::routes::Meta[][src]

pub struct Meta {
+        

Struct Meta

Struct pages::meta::routes::Meta[][src]

pub struct Meta {
     pub build_details: &'static str,
     pub health: &'static str,
-}

Fields

build_details: &'static strhealth: &'static str

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+}

Fields

build_details: &'static strhealth: &'static str

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

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]

pub struct BuildDetails {
     pub version: &'static str,
     pub git_commit_hash: &'static str,
-}

Fields

version: &'static strgit_commit_hash: &'static str

Trait Implementations

Returns a copy of the value. Read more

+ pub source_code: &'static str, +}

Fields

version: &'static strgit_commit_hash: &'static strsource_code: &'static str

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

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

Function pages::settings::check_url[][src]

fn check_url(s: &Config)
+

Function pages::settings::check_url[][src]

fn check_url(s: &Config)
\ 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: u32domain: Stringip: Stringproxy_has_tls: boolworkers: Option<usize>

Implementations

Trait Implementations

Returns a copy of the value. Read more

+}

Fields

port: u32ip: Stringworkers: Option<usize>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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]

pub struct Settings {
     pub server: Server,
     pub source_code: String,
     pub pages: Vec<Page>,
-}

Fields

debug: boolserver: Serversource_code: Stringpages: Vec<Page>

Implementations

Trait Implementations

Returns a copy of the value. Read more

+}

Fields

server: Serversource_code: Stringpages: Vec<Page>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

+

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

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]

pub struct Settings {
     pub server: Server,
     pub source_code: String,
     pub pages: Vec<Page>,
-}

Fields

debug: boolserver: Serversource_code: Stringpages: Vec<Page>

Implementations

Trait Implementations

Returns a copy of the value. Read more

+}

Fields

server: Serversource_code: Stringpages: Vec<Page>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

+

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

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