Sfoglia il codice sorgente

Upgrade Synapse (1.52.0 -> 1.53.0)

pull/1327/head^2
Slavi Pantaleev 4 anni fa
parent
commit
ef7acce94b
3 ha cambiato i file con 23 aggiunte e 11 eliminazioni
  1. +1
    -1
      roles/matrix-synapse/defaults/main.yml
  2. +16
    -4
      roles/matrix-synapse/templates/synapse/homeserver.yaml.j2
  3. +6
    -6
      roles/matrix-synapse/vars/workers.yml

+ 1
- 1
roles/matrix-synapse/defaults/main.yml Vedi File

@@ -9,7 +9,7 @@ matrix_synapse_container_image_self_build_repo: "https://github.com/matrix-org/s


matrix_synapse_docker_image: "{{ matrix_synapse_docker_image_name_prefix }}matrixdotorg/synapse:{{ matrix_synapse_docker_image_tag }}" matrix_synapse_docker_image: "{{ matrix_synapse_docker_image_name_prefix }}matrixdotorg/synapse:{{ matrix_synapse_docker_image_tag }}"
matrix_synapse_docker_image_name_prefix: "{{ 'localhost/' if matrix_synapse_container_image_self_build else matrix_container_global_registry_prefix }}" matrix_synapse_docker_image_name_prefix: "{{ 'localhost/' if matrix_synapse_container_image_self_build else matrix_container_global_registry_prefix }}"
matrix_synapse_version: v1.52.0
matrix_synapse_version: v1.53.0
matrix_synapse_docker_image_tag: "{{ matrix_synapse_version }}" matrix_synapse_docker_image_tag: "{{ matrix_synapse_version }}"
matrix_synapse_docker_image_force_pull: "{{ matrix_synapse_docker_image.endswith(':latest') }}" matrix_synapse_docker_image_force_pull: "{{ matrix_synapse_docker_image.endswith(':latest') }}"




+ 16
- 4
roles/matrix-synapse/templates/synapse/homeserver.yaml.j2 Vedi File

@@ -776,11 +776,16 @@ caches:
per_cache_factors: per_cache_factors:
#get_users_who_share_room_with_user: 2.0 #get_users_who_share_room_with_user: 2.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: 30m
#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 # 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 # 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"
# - one for ratelimiting how often a user or IP can attempt to validate a 3PID. # - 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 # - two for ratelimiting how often invites can be sent in a room or to a
# specific user. # 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. # The defaults are as shown below.
# #
@@ -944,6 +952,10 @@ rc_joins: {{ matrix_synapse_rc_joins|to_json }}
# per_user: # per_user:
# per_second: 0.003 # per_second: 0.003
# burst_count: 5 # burst_count: 5
#
#rc_third_party_invite:
# per_second: 0.2
# burst_count: 10


# Ratelimiting settings for incoming federation # Ratelimiting settings for incoming federation
# #


+ 6
- 6
roles/matrix-synapse/vars/workers.yml Vedi File

@@ -64,7 +64,7 @@ matrix_synapse_workers_generic_worker_endpoints:
# Registration/login requests # Registration/login requests
- ^/_matrix/client/(api/v1|r0|v3|unstable)/login$ - ^/_matrix/client/(api/v1|r0|v3|unstable)/login$
- ^/_matrix/client/(r0|v3|unstable)/register$ - ^/_matrix/client/(r0|v3|unstable)/register$
- ^/_matrix/client/unstable/org.matrix.msc3231/register/org.matrix.msc3231.login.registration_token/validity$
- ^/_matrix/client/v1/register/m.login.registration_token/validity$


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


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


# ]
# ]


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


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


# ]
# ]


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


Caricamento…
Annulla
Salva