pub struct TlsConfig {
pub cert: Option<Box<str>>,
pub key: Option<Box<str>>,
pub auto: Option<bool>,
pub email: Option<Box<str>>,
pub staging: Option<bool>,
pub cache_dir: Option<Box<str>>,
pub dns_provider: Option<Box<str>>,
pub dns_api_token_env: Option<Box<str>>,
pub dns_api_token_file: Option<Box<str>>,
}Expand description
Re-export of the shared TLS config block used by the proxy config. Shared TLS configuration parsed from TOML. Used by all suspension-stack tools (Camber, Kingpin, Damper).
Fields§
§cert: Option<Box<str>>Path to a PEM-encoded certificate file for manual TLS.
key: Option<Box<str>>Path to a PEM-encoded private key file for manual TLS.
auto: Option<bool>Enable automatic certificate provisioning.
email: Option<Box<str>>Contact email for ACME registration.
staging: Option<bool>Use the ACME staging environment instead of production.
cache_dir: Option<Box<str>>Directory used to cache ACME account and certificate data.
dns_provider: Option<Box<str>>DNS provider name for DNS-01 challenges.
dns_api_token_env: Option<Box<str>>Environment variable containing the DNS API token.
dns_api_token_file: Option<Box<str>>File containing the DNS API token.
Implementations§
Source§impl TlsConfig
impl TlsConfig
Sourcepub fn validate(&self) -> Result<(), RuntimeError>
pub fn validate(&self) -> Result<(), RuntimeError>
Validate that the configured TLS mode is internally consistent.
Sourcepub fn dns_provider(&self) -> Option<&str>
pub fn dns_provider(&self) -> Option<&str>
Return the configured DNS provider name.
Sourcepub fn dns_api_token_env(&self) -> Option<&str>
pub fn dns_api_token_env(&self) -> Option<&str>
Return the environment variable name holding the DNS API token.
Sourcepub fn dns_api_token_file(&self) -> Option<&str>
pub fn dns_api_token_file(&self) -> Option<&str>
Return the file path holding the DNS API token.