pub struct ServerConfig {
pub mode: String,
pub listen: String,
pub max_request: usize,
pub admin: Option<AdminConfig>,
pub webui: Option<WebUiConfig>,
pub metrics_listen: Option<String>,
pub admin_listen: Option<String>,
pub admin_tls: Option<TlsConfig>,
pub metrics_tls: Option<TlsConfig>,
}Fields§
§mode: String§listen: String§max_request: usize§admin: Option<AdminConfig>§webui: Option<WebUiConfig>§metrics_listen: Option<String>Optional dedicated listener for the Prometheus /metrics endpoint, e.g.
“127.0.0.1:9184”. Kept off the public OCSP port. Requires a build with
the metrics feature to expose data; otherwise /metrics returns 503.
admin_listen: Option<String>Optional dedicated listener for the admin API + web UI, e.g.
“127.0.0.1:2561”. When set, the management surface binds here instead of
riding the public OCSP port — required to give it a trusted path
(NIAP PPCA FTP_TRP.1) without wrapping the plaintext OCSP data plane.
Pair with admin_tls to terminate TLS. When unset, admin/UI remain on
listen for backward compatibility.
admin_tls: Option<TlsConfig>TLS material for the admin_listen listener. Requires a build with the
tls feature; startup fails if TLS support is unavailable.
metrics_tls: Option<TlsConfig>TLS material for the metrics_listen listener. Requires the tls
feature. When unset the metrics listener stays plaintext (private-bound).
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more