Added HTTPS support for all Servarrs
This commit is contained in:
@@ -224,5 +224,7 @@ mod tests {
|
||||
assert_str_eq!(radarr_config.host, "localhost");
|
||||
assert_eq!(radarr_config.port, Some(7878));
|
||||
assert!(radarr_config.api_token.is_empty());
|
||||
assert!(!radarr_config.use_ssl);
|
||||
assert_eq!(radarr_config.ssl_cert_path, None);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -176,6 +176,9 @@ pub struct RadarrConfig {
|
||||
pub host: String,
|
||||
pub port: Option<u16>,
|
||||
pub api_token: String,
|
||||
#[serde(default)]
|
||||
pub use_ssl: bool,
|
||||
pub ssl_cert_path: Option<String>,
|
||||
}
|
||||
|
||||
impl Default for RadarrConfig {
|
||||
@@ -184,6 +187,8 @@ impl Default for RadarrConfig {
|
||||
host: "localhost".to_string(),
|
||||
port: Some(7878),
|
||||
api_token: "".to_string(),
|
||||
use_ssl: false,
|
||||
ssl_cert_path: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user