mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2024-11-27 11:45:23 +00:00
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.
This commit is contained in:
parent
a87519fb71
commit
b546a5bf15
|
@ -568,7 +568,7 @@ pub fn get_server_keys_route(db: DatabaseGuard) -> Json<String> {
|
||||||
old_verify_keys: BTreeMap::new(),
|
old_verify_keys: BTreeMap::new(),
|
||||||
signatures: BTreeMap::new(),
|
signatures: BTreeMap::new(),
|
||||||
valid_until_ts: MilliSecondsSinceUnixEpoch::from_system_time(
|
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"),
|
.expect("time is valid"),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue