From ef6f50e898d873a9e7d3ad0438abe15d7dd7c6c1 Mon Sep 17 00:00:00 2001 From: Catalan Lover Date: Tue, 21 Jan 2025 16:49:21 +0100 Subject: [PATCH 1/2] Change matrix_synapse_forgotten_room_retention_period from null to 28d As we automatically forget rooms on leave in the playbook this option working at all is probably heavily desired. Timing is copied from upstream example. Credit goes to Anoa for making me even check this. --- roles/custom/matrix-synapse/defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/custom/matrix-synapse/defaults/main.yml b/roles/custom/matrix-synapse/defaults/main.yml index b45381c56..657d546bf 100644 --- a/roles/custom/matrix-synapse/defaults/main.yml +++ b/roles/custom/matrix-synapse/defaults/main.yml @@ -1456,7 +1456,7 @@ matrix_synapse_redaction_retention_period: 7d # Controls how long to keep locally forgotten rooms before purging them from the DB. # Defaults to `null`, meaning it's disabled. # Example value: 28d -matrix_synapse_forgotten_room_retention_period: ~ +matrix_synapse_forgotten_room_retention_period: 28d matrix_synapse_user_ips_max_age: 28d From 52da325ab83bb6b16e15adbd7bdad1e5b32c3943 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Wed, 22 Jan 2025 08:43:35 +0200 Subject: [PATCH 2/2] Cross-link `matrix_synapse_forget_rooms_on_leave` and `matrix_synapse_forgotten_room_retention_period` variables --- roles/custom/matrix-synapse/defaults/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/custom/matrix-synapse/defaults/main.yml b/roles/custom/matrix-synapse/defaults/main.yml index 657d546bf..2c070b47d 100644 --- a/roles/custom/matrix-synapse/defaults/main.yml +++ b/roles/custom/matrix-synapse/defaults/main.yml @@ -1415,6 +1415,7 @@ matrix_synapse_default_room_version: "10" # Controls whether leaving a room will automatically forget it. # The upstream default is `false`, but we try to make Synapse less wasteful of resources, so we do things differently. +# Also see: `matrix_synapse_forgotten_room_retention_period` matrix_synapse_forget_rooms_on_leave: true # Controls the Synapse `modules` list. @@ -1455,6 +1456,7 @@ matrix_synapse_redaction_retention_period: 7d # Controls how long to keep locally forgotten rooms before purging them from the DB. # Defaults to `null`, meaning it's disabled. +# Also see: `matrix_synapse_forget_rooms_on_leave` # Example value: 28d matrix_synapse_forgotten_room_retention_period: 28d