Add message & media retention time
This commit is contained in:
parent
5e767c71c2
commit
7f48bb6eba
1 changed files with 13 additions and 6 deletions
|
@ -459,23 +459,23 @@ retention:
|
|||
# The message retention policies feature is disabled by default. Uncomment the
|
||||
# following line to enable it.
|
||||
#
|
||||
#enabled: true
|
||||
enabled: true
|
||||
|
||||
# Default retention policy. If set, Synapse will apply it to rooms that lack the
|
||||
# 'm.room.retention' state event. Currently, the value of 'min_lifetime' doesn't
|
||||
# matter much because Synapse doesn't take it into account yet.
|
||||
#
|
||||
#default_policy:
|
||||
# min_lifetime: 1d
|
||||
# max_lifetime: 1y
|
||||
default_policy:
|
||||
min_lifetime: 1d
|
||||
max_lifetime: 14d
|
||||
|
||||
# Retention policy limits. If set, and the state of a room contains a
|
||||
# 'm.room.retention' event in its state which contains a 'min_lifetime' or a
|
||||
# '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: 14d
|
||||
|
||||
# Server admins can define the settings of the background jobs purging the
|
||||
# events which lifetime has expired under the 'purge_jobs' section.
|
||||
|
@ -966,6 +966,9 @@ rc_invites:
|
|||
#
|
||||
#enable_media_repo: false
|
||||
|
||||
# keep it in the master - default is true, but we are explicit
|
||||
enable_media_repo: true
|
||||
|
||||
# Directory where uploaded images and attachments are stored.
|
||||
#
|
||||
media_store_path: "/data/media"
|
||||
|
@ -984,6 +987,10 @@ media_store_path: "/data/media"
|
|||
# config:
|
||||
# directory: /mnt/some/other/directory
|
||||
|
||||
media_retention:
|
||||
local_media_lifetime: 14d
|
||||
remote_media_lifetime: 14d
|
||||
|
||||
# The largest allowed upload size in bytes
|
||||
#
|
||||
max_upload_size: 25M
|
||||
|
|
Loading…
Reference in a new issue