summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-01-31 17:59:09 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2022-02-22 10:59:20 +0000
commit30ecb7ade2947cab23918352be4e647d1aa0b394 (patch)
treec357447fcf9131a70d9b859aca50538231d65a2c /config
parentc8db7d35bfaeced6536b2794829f3cabd085ff31 (diff)
downloadnextcloud-server-30ecb7ade2947cab23918352be4e647d1aa0b394.tar.gz
nextcloud-server-30ecb7ade2947cab23918352be4e647d1aa0b394.zip
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 f80904588e3..b099b08f78c 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -1217,6 +1217,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