A fork of attic a self-hostable Nix Binary Cache server
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #179 from zhaofengli/config-allow-omitting-jwt

server/config: Allow omitting jwt section entirely

authored by

Zhaofeng Li and committed by
GitHub
b4338a16 858120c4

+11
+11
server/src/config.rs
··· 123 123 pub garbage_collection: GarbageCollectionConfig, 124 124 125 125 /// JSON Web Token. 126 + #[serde(default = "Default::default")] 126 127 pub jwt: JWTConfig, 127 128 128 129 /// (Deprecated Stub) ··· 397 398 "Database URL must be specified in either database.url \ 398 399 or the {ENV_DATABASE_URL} environment." 399 400 )) 401 + } 402 + 403 + impl Default for JWTConfig { 404 + fn default() -> Self { 405 + Self { 406 + token_bound_issuer: None, 407 + token_bound_audiences: None, 408 + signing_config: load_jwt_signing_config_from_env(), 409 + } 410 + } 400 411 } 401 412 402 413 impl CompressionConfig {