pub struct AcmeCfg {
pub enabled: bool,
pub domains: Vec<String>,
pub email: String,
pub directory_url: String,
pub cache_dir: String,
pub accept_tos: bool,
}Expand description
Automatic certificate management (ACME / Let’s Encrypt) via the HTTP-01 challenge. The
obtained certificate is written to TlsCfg::cert_path/key_path and served by the TLS
listener; a background task renews it before expiry.
Fields§
§enabled: bool§domains: Vec<String>Domains to request a certificate for (the first is the primary CN).
email: StringContact email for the ACME account (registration + expiry notices).
directory_url: StringACME directory URL. Defaults to Let’s Encrypt staging so a misconfiguration can’t burn the strict production rate limits; switch to production explicitly.
cache_dir: StringDirectory for the cached ACME account key (so renewals reuse the same account).
accept_tos: boolYou must set this to true to signify acceptance of the ACME provider’s Terms of
Service; EdgeGuard refuses to register otherwise.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AcmeCfg
impl<'de> Deserialize<'de> for AcmeCfg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AcmeCfg
impl RefUnwindSafe for AcmeCfg
impl Send for AcmeCfg
impl Sync for AcmeCfg
impl Unpin for AcmeCfg
impl UnsafeUnpin for AcmeCfg
impl UnwindSafe for AcmeCfg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more