set ALLOWED_LIFETIME_MAX (retention)

This commit is contained in:
decentral1se 2022-09-06 01:03:15 +02:00
parent 0dff883beb
commit 998583c2a5
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
2 changed files with 4 additions and 2 deletions

View File

@ -37,6 +37,8 @@ USER_IPS_MAX_AGE=1d
ENCRYPTED_BY_DEFAULT=all
ALLOWED_LIFETIME_MAX=4w
#ENABLE_ALLOWLIST=1
#FEDERATION_ALLOWLIST="[]"

View File

@ -554,8 +554,8 @@ retention:
# 'max_lifetime' that's out of these bounds, Synapse will cap the room's policy
# to these limits when running purge jobs.
#
#allowed_lifetime_min: 1d
#allowed_lifetime_max: 1y
allowed_lifetime_min: 1d
allowed_lifetime_max: {{ env "ALLOWED_LIFETIME_MAX" }}
# Server admins can define the settings of the background jobs purging the
# events which lifetime has expired under the 'purge_jobs' section.