pub enum TlsMode {
None,
SelfSigned,
Custom {
cert_path: String,
key_path: String,
},
Acme {
email: String,
cache_dir: Option<PathBuf>,
},
}Expand description
TLS mode for the proxy.
Variants§
None
No TLS (HTTP only).
SelfSigned
Auto-generated self-signed certificate.
Custom
User-provided certificate and key files.
Acme
ACME/Let’s Encrypt via instant-acme — fully automatic.
The proxy serves HTTP-01 challenges on port 80 and provisions certs automatically when a domain is configured.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TlsMode
impl RefUnwindSafe for TlsMode
impl Send for TlsMode
impl Sync for TlsMode
impl Unpin for TlsMode
impl UnsafeUnpin for TlsMode
impl UnwindSafe for TlsMode
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