diff options
Diffstat (limited to 'common/src/config.rs')
-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>, |