pub struct Acme { /* private fields */ }Expand description
Let’s Encrypt / ACME plugin (HTTP-01 on port 80 + background renewer).
Implementations§
Source§impl Acme
impl Acme
Sourcepub fn lets_encrypt(
domains: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn lets_encrypt( domains: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Production Let’s Encrypt directory.
Sourcepub fn lets_encrypt_staging(
domains: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn lets_encrypt_staging( domains: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Staging Let’s Encrypt directory (rate-limit friendly).
pub fn email(self, email: impl Into<String>) -> Self
Sourcepub fn dir(self, path: impl Into<PathBuf>) -> Self
pub fn dir(self, path: impl Into<PathBuf>) -> Self
Directory for account.json, cert.pem, key.pem, meta.json.
pub fn staging(self, staging: bool) -> Self
pub fn http_port(self, port: u16) -> Self
Sourcepub fn https_port(self, port: u16) -> Self
pub fn https_port(self, port: u16) -> Self
Port used in Location when redirecting non-challenge HTTP traffic.
pub fn redirect_https(self, on: bool) -> Self
Sourcepub fn hsts(self, enabled: bool) -> Self
pub fn hsts(self, enabled: bool) -> Self
Emit Strict-Transport-Security on HTTPS responses (default true).
Sourcepub fn renew_days(self, days: u64) -> Self
pub fn renew_days(self, days: u64) -> Self
Renew when remaining lifetime ≤ this many days (default 30).
pub fn check_interval(self, interval: Duration) -> Self
Sourcepub fn with_tls(self, tls: Tls) -> Self
pub fn with_tls(self, tls: Tls) -> Self
Advanced: supply a pre-built Tls (same handle used for hot-reload).
Prefer the default path — install builds TLS and calls App::use_tls.
Trait Implementations§
Source§impl Plugin for Acme
impl Plugin for Acme
Source§fn id(&self) -> &'static str
fn id(&self) -> &'static str
Stable plugin identifier used for dependency checks and
crate::App::has_plugin. Read moreSource§fn meta(&self) -> PluginMeta
fn meta(&self) -> PluginMeta
Display name, description, and declared
PluginMeta::sdk version.Auto Trait Implementations§
impl !RefUnwindSafe for Acme
impl !UnwindSafe for Acme
impl Freeze for Acme
impl Send for Acme
impl Sync for Acme
impl Unpin for Acme
impl UnsafeUnpin for Acme
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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