Skip to content

Commit

Permalink
matrix: Disable retention
Browse files Browse the repository at this point in the history
Deleting events causes database corruption, see e.g.
matrix-org/synapse#11738 and
matrix-org/synapse#13476.
  • Loading branch information
heftig committed Feb 15, 2023
1 parent 727e0cc commit dff25b3
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions roles/matrix/templates/homeserver.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,8 @@ caches:

# Retention
delete_stale_devices_after: 1y
retention:
enabled: true
default_policy:
min_lifetime: 1d
max_lifetime: 1y
allowed_lifetime_min: 1d
allowed_lifetime_max: 1y
purge_jobs:
- longest_max_lifetime: 3d
interval: 12h
- shortest_max_lifetime: 3d
interval: 1d
media_retention:
local_media_lifetime: 1y
remote_media_lifetime: 28d
remote_media_lifetime: 14d

# Media repository
media_store_path: "/var/lib/synapse/media_store"
Expand Down

0 comments on commit dff25b3

Please sign in to comment.