trifid/trifid-api/src/config.rs

11 lines
228 B
Rust
Raw Normal View History

2023-02-03 02:39:41 +00:00
use serde::Deserialize;
use url::Url;
2023-02-03 02:39:41 +00:00
#[derive(Deserialize)]
pub struct TFConfig {
pub listen_port: u16,
pub db_url: String,
pub base: Url,
pub magic_links_valid_for: i64,
pub session_tokens_valid_for: i64
2023-02-03 02:39:41 +00:00
}