From b546a5bf152d2f5cc65eee14e019588609bea9d2 Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Wed, 25 Aug 2021 16:06:35 +0200 Subject: [PATCH] Let our server signing be valid for 1 week It was valid for 2 minutes, which can result in the server being asked too much for something that never changes. --- src/server_server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server_server.rs b/src/server_server.rs index b83eaa4a..129f5958 100644 --- a/src/server_server.rs +++ b/src/server_server.rs @@ -568,7 +568,7 @@ pub fn get_server_keys_route(db: DatabaseGuard) -> Json { old_verify_keys: BTreeMap::new(), signatures: BTreeMap::new(), valid_until_ts: MilliSecondsSinceUnixEpoch::from_system_time( - SystemTime::now() + Duration::from_secs(60 * 2), + SystemTime::now() + Duration::from_secs(86400 * 7), ) .expect("time is valid"), },