From 42c565c3687454f8b4850d6d6359e738aaab2a57 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 10 Feb 2020 09:15:19 +0000 Subject: [PATCH] Setup retention policy Hopefully this puts a bit more of a handle on DB size --- ansible/roles/docker/files/synapse/homeserver.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ansible/roles/docker/files/synapse/homeserver.yml b/ansible/roles/docker/files/synapse/homeserver.yml index dbc460b..4e65a4d 100644 --- a/ansible/roles/docker/files/synapse/homeserver.yml +++ b/ansible/roles/docker/files/synapse/homeserver.yml @@ -333,15 +333,15 @@ 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: 30d # Retention policy limits. If set, a user won't be able to send a # 'm.room.retention' event which features a 'min_lifetime' or a 'max_lifetime'