From 989a8a4b7de5f4356a81cafd30b67c93b2bd8343 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org> Date: Fri, 4 Mar 2022 17:11:43 +0100 Subject: [PATCH] matrix: Update synapse to 1.53.0 --- roles/matrix/tasks/main.yml | 2 +- roles/matrix/templates/homeserver.yaml.j2 | 20 ++++++++++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/roles/matrix/tasks/main.yml b/roles/matrix/tasks/main.yml index 73a9e5ff6..f92e73437 100644 --- a/roles/matrix/tasks/main.yml +++ b/roles/matrix/tasks/main.yml @@ -77,7 +77,7 @@ - name: install synapse pip: name: - - 'matrix-synapse[postgres,systemd,url_preview,redis,oidc]==1.52.0' + - 'matrix-synapse[postgres,systemd,url_preview,redis,oidc]==1.53.0' state: latest extra_args: '--upgrade-strategy=eager' virtualenv: /var/lib/synapse/venv diff --git a/roles/matrix/templates/homeserver.yaml.j2 b/roles/matrix/templates/homeserver.yaml.j2 index dc57e8ea0..67a4449df 100644 --- a/roles/matrix/templates/homeserver.yaml.j2 +++ b/roles/matrix/templates/homeserver.yaml.j2 @@ -763,11 +763,16 @@ caches: #get_users_who_share_room_with_user: 2.0 get_users_in_room: 5.0 - # Controls how long an entry can be in a cache without having been - # accessed before being evicted. Defaults to None, which means - # entries are never evicted based on time. + # Controls whether cache entries are evicted after a specified time + # period. Defaults to true. Uncomment to disable this feature. # - expiry_time: 1h + #expire_caches: false + + # If expire_caches is enabled, this flag controls how long an entry can + # be in a cache without having been accessed before being evicted. + # Defaults to 30m. Uncomment to set a different time to live for cache entries. + # + #cache_entry_ttl: 30m # Controls how long the results of a /sync request are cached for after # a successful response is returned. A higher duration can help clients with @@ -875,6 +880,9 @@ worker_log_config: "/etc/synapse/log_config.yaml" # - one for ratelimiting how often a user or IP can attempt to validate a 3PID. # - two for ratelimiting how often invites can be sent in a room or to a # specific user. +# - one for ratelimiting 3PID invites (i.e. invites sent to a third-party ID +# such as an email address or a phone number) based on the account that's +# sending the invite. # # The defaults are as shown below. # @@ -924,6 +932,10 @@ worker_log_config: "/etc/synapse/log_config.yaml" # per_user: # per_second: 0.003 # burst_count: 5 +# +#rc_third_party_invite: +# per_second: 0.2 +# burst_count: 10 # Ratelimiting settings for incoming federation # -- GitLab