feat: load dashboard api key

This commit is contained in:
Aravinth Manivannan 2022-12-29 01:38:48 +05:30
parent 49f48e69c0
commit 647ec8f715
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
2 changed files with 9 additions and 0 deletions

View File

@ -17,6 +17,9 @@ domain = "localhost"
proxy_has_tls = false
#url_prefix = ""
[dash]
api_key = "somereallycomplicatedBatmanpassword"
[database]
# This section deals with the database location and how to access it
# Please note that at the moment, we have support for only postgresqa.

View File

@ -24,6 +24,11 @@ use serde::Deserialize;
use serde::Serialize;
use url::Url;
#[derive(Debug, Clone, Deserialize)]
pub struct Dashboard {
pub api_key: String,
}
#[derive(Debug, Clone, Deserialize)]
pub struct Server {
pub port: u32,
@ -72,6 +77,7 @@ pub struct Settings {
pub database: Database,
pub server: Server,
pub source_code: String,
pub dash: Dashboard,
}
#[cfg(not(tarpaulin_include))]