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
|
# The message retention policies feature is disabled by default. Uncomment the
|
||||||
# following line to enable it.
|
# following line to enable it.
|
||||||
#
|
#
|
||||||
#enabled: true
|
enabled: true
|
||||||
|
|
||||||
# Default retention policy. If set, Synapse will apply it to rooms that lack the
|
# 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
|
# 'm.room.retention' state event. Currently, the value of 'min_lifetime' doesn't
|
||||||
# matter much because Synapse doesn't take it into account yet.
|
# matter much because Synapse doesn't take it into account yet.
|
||||||
#
|
#
|
||||||
#default_policy:
|
default_policy:
|
||||||
# min_lifetime: 1d
|
min_lifetime: 1d
|
||||||
# max_lifetime: 1y
|
max_lifetime: 14d
|
||||||
|
|
||||||
# Retention policy limits. If set, and the state of a room contains a
|
# 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
|
# '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
|
# 'max_lifetime' that's out of these bounds, Synapse will cap the room's policy
|
||||||
# to these limits when running purge jobs.
|
# to these limits when running purge jobs.
|
||||||
#
|
#
|
||||||
#allowed_lifetime_min: 1d
|
allowed_lifetime_min: 1d
|
||||||
#allowed_lifetime_max: 1y
|
allowed_lifetime_max: 14d
|
||||||
|
|
||||||
# Server admins can define the settings of the background jobs purging the
|
# Server admins can define the settings of the background jobs purging the
|
||||||
# events which lifetime has expired under the 'purge_jobs' section.
|
# events which lifetime has expired under the 'purge_jobs' section.
|
||||||
|
@ -966,6 +966,9 @@ rc_invites:
|
||||||
#
|
#
|
||||||
#enable_media_repo: false
|
#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.
|
# Directory where uploaded images and attachments are stored.
|
||||||
#
|
#
|
||||||
media_store_path: "/data/media"
|
media_store_path: "/data/media"
|
||||||
|
@ -984,6 +987,10 @@ media_store_path: "/data/media"
|
||||||
# config:
|
# config:
|
||||||
# directory: /mnt/some/other/directory
|
# directory: /mnt/some/other/directory
|
||||||
|
|
||||||
|
media_retention:
|
||||||
|
local_media_lifetime: 14d
|
||||||
|
remote_media_lifetime: 14d
|
||||||
|
|
||||||
# The largest allowed upload size in bytes
|
# The largest allowed upload size in bytes
|
||||||
#
|
#
|
||||||
max_upload_size: 25M
|
max_upload_size: 25M
|
||||||
|
|
Loading…
Reference in a new issue