Skip to content

Commit ef7acce

Browse files
committed
Upgrade Synapse (1.52.0 -> 1.53.0)
1 parent eca7c27 commit ef7acce

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed

roles/matrix-synapse/defaults/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ matrix_synapse_container_image_self_build_repo: "https://github.com/matrix-org/s
99

1010
matrix_synapse_docker_image: "{{ matrix_synapse_docker_image_name_prefix }}matrixdotorg/synapse:{{ matrix_synapse_docker_image_tag }}"
1111
matrix_synapse_docker_image_name_prefix: "{{ 'localhost/' if matrix_synapse_container_image_self_build else matrix_container_global_registry_prefix }}"
12-
matrix_synapse_version: v1.52.0
12+
matrix_synapse_version: v1.53.0
1313
matrix_synapse_docker_image_tag: "{{ matrix_synapse_version }}"
1414
matrix_synapse_docker_image_force_pull: "{{ matrix_synapse_docker_image.endswith(':latest') }}"
1515

roles/matrix-synapse/templates/synapse/homeserver.yaml.j2

+16-4
Original file line numberDiff line numberDiff line change
@@ -776,11 +776,16 @@ caches:
776776
per_cache_factors:
777777
#get_users_who_share_room_with_user: 2.0
778778

779-
# Controls how long an entry can be in a cache without having been
780-
# accessed before being evicted. Defaults to None, which means
781-
# entries are never evicted based on time.
779+
# Controls whether cache entries are evicted after a specified time
780+
# period. Defaults to true. Uncomment to disable this feature.
782781
#
783-
#expiry_time: 30m
782+
#expire_caches: false
783+
784+
# If expire_caches is enabled, this flag controls how long an entry can
785+
# be in a cache without having been accessed before being evicted.
786+
# Defaults to 30m. Uncomment to set a different time to live for cache entries.
787+
#
788+
#cache_entry_ttl: 30m
784789

785790
# Controls how long the results of a /sync request are cached for after
786791
# a successful response is returned. A higher duration can help clients with
@@ -890,6 +895,9 @@ log_config: "/data/{{ matrix_server_fqn_matrix }}.log.config"
890895
# - one for ratelimiting how often a user or IP can attempt to validate a 3PID.
891896
# - two for ratelimiting how often invites can be sent in a room or to a
892897
# specific user.
898+
# - one for ratelimiting 3PID invites (i.e. invites sent to a third-party ID
899+
# such as an email address or a phone number) based on the account that's
900+
# sending the invite.
893901
#
894902
# The defaults are as shown below.
895903
#
@@ -944,6 +952,10 @@ rc_joins: {{ matrix_synapse_rc_joins|to_json }}
944952
# per_user:
945953
# per_second: 0.003
946954
# burst_count: 5
955+
#
956+
#rc_third_party_invite:
957+
# per_second: 0.2
958+
# burst_count: 10
947959

948960
# Ratelimiting settings for incoming federation
949961
#

roles/matrix-synapse/vars/workers.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ matrix_synapse_workers_generic_worker_endpoints:
6464
# Registration/login requests
6565
- ^/_matrix/client/(api/v1|r0|v3|unstable)/login$
6666
- ^/_matrix/client/(r0|v3|unstable)/register$
67-
- ^/_matrix/client/unstable/org.matrix.msc3231/register/org.matrix.msc3231.login.registration_token/validity$
67+
- ^/_matrix/client/v1/register/m.login.registration_token/validity$
6868

6969
# Event sending requests
7070
- ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/redact
@@ -206,7 +206,7 @@ matrix_synapse_workers_generic_worker_endpoints:
206206
# You might also wish to investigate the `update_user_directory` and
207207
# `media_instance_running_background_jobs` settings.
208208

209-
# pusher worker (no API endpoints) [
209+
# pusher worker (no API endpoints) [
210210
# Handles sending push notifications to sygnal and email. Doesn't handle any
211211
# REST endpoints itself, but you should set `start_pushers: False` in the
212212
# shared configuration file to stop the main synapse sending push notifications.
@@ -220,18 +220,18 @@ matrix_synapse_workers_generic_worker_endpoints:
220220
# - pusher_worker2
221221
# ```
222222

223-
# ]
223+
# ]
224224

225-
# appservice worker (no API endpoints) [
225+
# appservice worker (no API endpoints) [
226226
# Handles sending output traffic to Application Services. Doesn't handle any
227227
# REST endpoints itself, but you should set `notify_appservices: False` in the
228228
# shared configuration file to stop the main synapse sending appservice notifications.
229229

230230
# Note this worker cannot be load-balanced: only one instance should be active.
231231

232-
# ]
232+
# ]
233233

234-
# federation_sender worker (no API endpoints) [
234+
# federation_sender worker (no API endpoints) [
235235
# Handles sending federation traffic to other servers. Doesn't handle any
236236
# REST endpoints itself, but you should set `send_federation: False` in the
237237
# shared configuration file to stop the main synapse sending this traffic.

0 commit comments

Comments
 (0)