diff --git a/ansible/roles/docker-compose/files/synapse/config/homeserver.yaml b/ansible/roles/docker-compose/files/synapse/config/homeserver.yaml index f6aa5aa..f2db2dd 100755 --- a/ansible/roles/docker-compose/files/synapse/config/homeserver.yaml +++ b/ansible/roles/docker-compose/files/synapse/config/homeserver.yaml @@ -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