aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-08-18 22:02:03 +0200
committermetamuffin <metamuffin@disroot.org>2024-08-18 22:02:03 +0200
commit311d8dc828446d4cfd936706782d2d6b22ed5d86 (patch)
tree256d785ff19a2346f7db79e6ebeb0e5c2508e80a /src/config.rs
parentf46b05a0afa776b39764bb3ddf8ecab6cde13a2c (diff)
downloadgnix-311d8dc828446d4cfd936706782d2d6b22ed5d86.tar
gnix-311d8dc828446d4cfd936706782d2d6b22ed5d86.tar.bz2
gnix-311d8dc828446d4cfd936706782d2d6b22ed5d86.tar.zst
new cert loading method
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs
index e3b0d3c..6ef392d 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -59,8 +59,8 @@ pub struct HttpConfig {
pub struct HttpsConfig {
#[serde(deserialize_with = "string_or_seq")]
pub bind: Vec<SocketAddr>,
- pub tls_cert: PathBuf,
- pub tls_key: PathBuf,
+ #[serde(deserialize_with = "seq_or_not")]
+ pub cert_path: Vec<PathBuf>,
}
// try deser Vec<T> but fall back to deser T and putting that in Vec