Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-01-31 19:59:09 +0300
committerJoas Schilling <coding@schilljs.com>2022-02-07 15:54:54 +0300
commit3fd55cb4df80b6434cc5f028f80f1419b3f79202 (patch)
treecdfdb4ee1a290b2a79da940f6ad65ba607a81ac9 /config
parentb765f79368885ace29d8cd122144a1357435cfbb (diff)
Allow sysadmins to define a maintenance window where heavier jobs can run
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'config')
-rw-r--r--config/config.sample.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index 1e883aef358..f861df2a7ce 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -1214,6 +1214,20 @@ $CONFIG = [
*/
'maintenance' => false,
+/**
+ * UTC Hour for maintenance windows
+ *
+ * Some background jobs only run once a day. When an hour is defined for this config,
+ * the background jobs which advertise themselves as not time sensitive will be
+ * delayed during the "working" hours and only run in the 4 hours after the given time.
+ * This is e.g. used for activity expiration, suspicious login training and update checks.
+ *
+ * A value of 1 e.g. will only run these background jobs between 01:00am UTC and 05:00am UTC.
+ *
+ * Defaults to ``100`` which disables the feature
+ */
+'maintenance_window_start' => 1,
+
/**
* SSL