From 7cc21df6a80881de08e008c3f79b232bd3591973 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 26 Jan 2024 21:02:30 +0100 Subject: fix hls? --- common/src/config.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common/src/config.rs') diff --git a/common/src/config.rs b/common/src/config.rs index 0b1c576..ff367c3 100644 --- a/common/src/config.rs +++ b/common/src/config.rs @@ -30,7 +30,9 @@ pub struct GlobalConfig { #[derive(Serialize, Deserialize, Debug)] pub struct SecretsConfig { + #[serde(default)] pub federation: HashMap, + #[serde(default)] pub api: ApiSecrets, #[serde(default)] pub cookie_key: Option, @@ -47,7 +49,7 @@ pub struct FederationAccount { pub tls: bool, } -#[derive(Serialize, Deserialize, Debug)] +#[derive(Serialize, Deserialize, Debug, Default)] pub struct ApiSecrets { pub tmdb: Option, pub tvdb: Option, -- cgit v1.2.3-70-g09d2