2023-02-03 02:39:41 +00:00
|
|
|
use serde::Deserialize;
|
2023-02-04 23:44:51 +00:00
|
|
|
use url::Url;
|
2023-02-03 02:39:41 +00:00
|
|
|
|
|
|
|
#[derive(Deserialize)]
|
|
|
|
pub struct TFConfig {
|
|
|
|
pub listen_port: u16,
|
2023-02-04 23:44:51 +00:00
|
|
|
pub db_url: String,
|
|
|
|
pub base: Url,
|
2023-02-06 02:00:25 +00:00
|
|
|
pub magic_links_valid_for: i64,
|
2023-02-07 15:37:25 +00:00
|
|
|
pub session_tokens_valid_for: i64,
|
|
|
|
pub totp_verification_valid_for: i64
|
2023-02-03 02:39:41 +00:00
|
|
|
}
|