diff options
author | metamuffin <metamuffin@disroot.org> | 2024-01-26 21:02:30 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-01-26 21:02:30 +0100 |
commit | 7cc21df6a80881de08e008c3f79b232bd3591973 (patch) | |
tree | 8d3af04cf0821d6c4bf4c72676a84202eb296cd6 /common/src | |
parent | 036390867efb2c08a70853b96309f09637e08a30 (diff) | |
download | jellything-7cc21df6a80881de08e008c3f79b232bd3591973.tar jellything-7cc21df6a80881de08e008c3f79b232bd3591973.tar.bz2 jellything-7cc21df6a80881de08e008c3f79b232bd3591973.tar.zst |
fix hls?
Diffstat (limited to 'common/src')
-rw-r--r-- | common/src/config.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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<String, FederationAccount>, + #[serde(default)] pub api: ApiSecrets, #[serde(default)] pub cookie_key: Option<String>, @@ -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<String>, pub tvdb: Option<String>, |