You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: [torrust#852] enrich field types in HttpTracker config struct
If the next major config version the `TslConfig` shoud always contain
valid file paths and the whole field should be optional in the parent
strcut `HttpTracker`:
```rust
pub struct HttpTracker {
pub enabled: bool,
pub bind_address: SocketAddr,
pub ssl_enabled: bool,
#[serde(flatten)]
pub tsl_config: Optional<TslConfig>,
}
pub struct TslConfig {
pub ssl_cert_path: PathBuf,
pub ssl_key_path: PathBuf,
}
```
That mean, the user could provide it or not, but if it's provided file
paths can't be empty.
0 commit comments