From a213164cb152ea89a6f4b895337dbe6c124ffe04 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Wed, 17 Jul 2024 17:52:21 +0300 Subject: [PATCH] Enable client & federation listeners for media repository workers Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/c6d8a68e7774f2b9c9b61a0efc2f7521554d6ab5 Related to https://github.com/element-hq/synapse/pull/17421 Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3427 --- .../custom/matrix-synapse/templates/synapse/worker.yaml.j2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/custom/matrix-synapse/templates/synapse/worker.yaml.j2 b/roles/custom/matrix-synapse/templates/synapse/worker.yaml.j2 index 738f0fa33..4c1306c0c 100644 --- a/roles/custom/matrix-synapse/templates/synapse/worker.yaml.j2 +++ b/roles/custom/matrix-synapse/templates/synapse/worker.yaml.j2 @@ -28,7 +28,11 @@ worker_log_config: /data/{{ matrix_server_fqn_matrix }}.log.config {% set http_resources = http_resources + ['client'] %} {% endif %} {% if matrix_synapse_worker_details.type == 'media_repository' %} - {% set http_resources = http_resources + ['media'] %} + {# + Handling authenticated media endpoints (`/_matrix/client/VERSION/media/` and `/_matrix/federation/v1/media/`) + requires serving the client and federation resources. + #} + {% set http_resources = http_resources + ['media', 'client', 'federation'] %} {% endif %} {% set replication_http_resources = [] %}