feat: load dashboard api key
This commit is contained in:
parent
49f48e69c0
commit
647ec8f715
2 changed files with 9 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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))]
|
||||
|
|
Loading…
Reference in a new issue