mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-08-02 12:24:52 +02:00
more tracing
This commit is contained in:
parent
62acb3692a
commit
b0348af90f
6 changed files with 115 additions and 29 deletions
|
|
@ -13,6 +13,8 @@ pub struct Config {
|
|||
pub listen: Listen,
|
||||
pub database: DbConfig,
|
||||
pub site: SiteConfig,
|
||||
#[serde(default)]
|
||||
pub tracing: Option<TracingConfig>,
|
||||
}
|
||||
|
||||
impl Config {
|
||||
|
|
@ -89,3 +91,16 @@ fn default_api() -> String {
|
|||
fn default_maps() -> String {
|
||||
"https://maps.demos.tf/".into()
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
pub struct TracingConfig {
|
||||
pub endpoint: String,
|
||||
#[serde(default)]
|
||||
pub tls: Option<TracingTlsConfig>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
pub struct TracingTlsConfig {
|
||||
pub cert_file: String,
|
||||
pub key_file: String,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue