2022-11-02 22:06:43 +01:00
|
|
|
#[derive(Debug, serde::Deserialize)]
|
|
|
|
pub struct Config {
|
2022-11-03 01:21:53 +01:00
|
|
|
pub redis: String,
|
2023-10-12 21:49:47 +02:00
|
|
|
pub redis_password_file: String,
|
2023-08-08 18:42:34 +02:00
|
|
|
pub database: String,
|
2022-11-02 22:06:43 +01:00
|
|
|
pub hosts: Vec<String>,
|
|
|
|
pub max_workers: usize,
|
2022-12-26 03:44:42 +01:00
|
|
|
pub prometheus_port: u16,
|
2023-01-23 21:04:01 +01:00
|
|
|
pub blocklist: String,
|
2022-11-02 22:06:43 +01:00
|
|
|
}
|