Skip to content

Commit

Permalink
Add support for configuring forgotten_room_retention_period
Browse files Browse the repository at this point in the history
  • Loading branch information
spantaleev committed Sep 28, 2023
1 parent af39de9 commit 217ddad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions roles/custom/matrix-synapse/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,11 @@ matrix_synapse_trusted_key_servers:

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_user_ips_max_age: 28d


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,15 +509,20 @@ limit_remote_rooms:
#
#redaction_retention_period: 28d

redaction_retention_period: {{ matrix_synapse_redaction_retention_period }}
redaction_retention_period: {{ matrix_synapse_redaction_retention_period | to_json }}

# How long to keep locally forgotten rooms before purging them from the DB.
#
#forgotten_room_retention_period: 28d
forgotten_room_retention_period: {{ matrix_synapse_forgotten_room_retention_period | to_json }}

# How long to track users' last seen time and IPs in the database.
#
# Defaults to `28d`. Set to `null` to disable clearing out of old rows.
#
#user_ips_max_age: 14d

user_ips_max_age: {{ matrix_synapse_user_ips_max_age }}
user_ips_max_age: {{ matrix_synapse_user_ips_max_age | to_json }}

# Inhibits the /requestToken endpoints from returning an error that might leak
# information about whether an e-mail address is in use or not on this
Expand Down

0 comments on commit 217ddad

Please sign in to comment.