diff --git a/server/src/config.rs b/server/src/config.rs index 5ad8fc8..cb75046 100644 --- a/server/src/config.rs +++ b/server/src/config.rs @@ -123,6 +123,7 @@ pub struct Config { pub garbage_collection: GarbageCollectionConfig, /// JSON Web Token. + #[serde(default = "Default::default")] pub jwt: JWTConfig, /// (Deprecated Stub) @@ -399,6 +400,16 @@ fn load_database_url_from_env() -> String { )) } +impl Default for JWTConfig { + fn default() -> Self { + Self { + token_bound_issuer: None, + token_bound_audiences: None, + signing_config: load_jwt_signing_config_from_env(), + } + } +} + impl CompressionConfig { pub fn level(&self) -> CompressionLevel { if let Some(level) = self.level {