2022-07-04 00:01:24 +00:00
|
|
|
use once_cell::sync::OnceCell;
|
2023-05-22 19:19:35 +00:00
|
|
|
use std::{net::SocketAddr, path::PathBuf};
|
2022-05-10 07:17:47 +00:00
|
|
|
|
2022-07-04 00:01:24 +00:00
|
|
|
pub static CF: OnceCell<Config> = OnceCell::new();
|
|
|
|
|
2022-05-10 07:17:47 +00:00
|
|
|
#[derive(Clone, Debug)]
|
|
|
|
pub struct Config {
|
2022-07-27 13:05:28 +00:00
|
|
|
pub strict: bool,
|
2022-05-10 07:17:47 +00:00
|
|
|
pub bind: SocketAddr,
|
|
|
|
pub path: String,
|
|
|
|
pub user: String,
|
2022-07-24 00:11:32 +00:00
|
|
|
pub pass: Option<String>,
|
2023-05-22 19:19:35 +00:00
|
|
|
pub crt: Option<PathBuf>,
|
|
|
|
pub key: Option<PathBuf>,
|
2022-05-10 07:17:47 +00:00
|
|
|
}
|