From 76a7600e2e8ee239c2f7dd19e8b3d1e86f7c5362 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 18 Sep 2020 12:34:43 +0200 Subject: Allow configuring the activity update interval of token On some systems with a lot of users this creates a lot of extra DB writes. Being able to increase this interval helps there. Signed-off-by: Roeland Jago Douma --- config/config.sample.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'config') diff --git a/config/config.sample.php b/config/config.sample.php index 61d7130660d..2710fbf5fdb 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -269,6 +269,18 @@ $CONFIG = [ */ 'token_auth_enforced' => false, +/** + * The interval at which token activity should be updated. + * Increasing this value means that the last activty on the security page gets + * more outdated. + * + * Tokens are still checked every 5 minutes for validity + * max value: 300 + * + * Defaults to ``300`` + */ +'token_auth_activity_update' => 60, + /** * Whether the bruteforce protection shipped with Nextcloud should be enabled or not. * -- cgit v1.2.3