kanidm/src/lib/config.rs

24 lines
561 B
Rust
Raw Normal View History

2018-11-26 07:13:22 +01:00
#[derive(Serialize, Deserialize, Debug)]
pub struct Configuration {
pub address: String,
pub threads: usize,
pub db_path: String,
pub maximum_request: usize,
// db type later
pub secure_cookies: bool,
2018-11-26 07:13:22 +01:00
}
impl Configuration {
pub fn new() -> Self {
Configuration {
address: String::from("127.0.0.1:8080"),
threads: 8,
db_path: String::from(""),
maximum_request: 262144, // 256k
// log type
// log path
secure_cookies: true,
2018-11-26 07:13:22 +01:00
}
}
}