From d0221dc31b43f4bc02fe4c6084809ba72a26a744 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Sat, 14 Sep 2024 02:38:15 -0600 Subject: [PATCH] synapse: allow federated media requests Signed-off-by: Sumner Evans --- nixos/modules/services/matrix/synapse/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/matrix/synapse/default.nix b/nixos/modules/services/matrix/synapse/default.nix index d0a246e..b3a5295 100644 --- a/nixos/modules/services/matrix/synapse/default.nix +++ b/nixos/modules/services/matrix/synapse/default.nix @@ -379,7 +379,7 @@ in { access_log /var/log/nginx/matrix-synchotron.access.log; ''; }; - locations."~ ^/(_matrix/media/.*/upload|_matrix/client/v1/media|_synapse/admin/v1/(purge_media_cache|(room|user)/.*/media.*|media/.*|quarantine_media/.*|users/.*/media))" = + locations."~ ^/(_matrix/media/.*/upload|_matrix/client/v1/media|_matrix/federation/v1/media|_synapse/admin/v1/(purge_media_cache|(room|user)/.*/media.*|media/.*|quarantine_media/.*|users/.*/media))" = { proxyPass = "http://0.0.0.0:8011"; # without a trailing / extraConfig = ''