mirror of
https://github.com/actix/actix-extras.git
synced 2025-04-23 02:14:52 +02:00
19 lines
460 B
Rust
19 lines
460 B
Rust
use std::path::PathBuf;
|
|
|
|
use serde::Deserialize;
|
|
|
|
/// TLS (HTTPS) configuration.
|
|
#[derive(Debug, Clone, PartialEq, Eq, Hash, Deserialize)]
|
|
#[serde(rename_all = "kebab-case")]
|
|
#[doc(alias = "ssl", alias = "https")]
|
|
pub struct Tls {
|
|
/// Tru if accepting TLS connections should be enabled.
|
|
pub enabled: bool,
|
|
|
|
/// Path to certificate `.pem` file.
|
|
pub certificate: PathBuf,
|
|
|
|
/// Path to private key `.pem` file.
|
|
pub private_key: PathBuf,
|
|
}
|