Skip to content

Commit

Permalink
matrix/synapse: send authenticated media to media worker
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed Aug 2, 2024
1 parent b4ce3a8 commit 9a89824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/services/matrix/synapse/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ let
type = "http";
port = 8011;
bind_address = "0.0.0.0";
resources = [{ names = [ "media" ]; }];
resources = [{ names = [ "media" "client" "federation" ]; }];
}];
});
in {
Expand Down Expand Up @@ -379,7 +379,7 @@ in {
access_log /var/log/nginx/matrix-synchotron.access.log;
'';
};
locations."~ ^/(_matrix/media|_synapse/admin/v1/(purge_media_cache|(room|user)/.*/media.*|media/.*|quarantine_media/.*|users/.*/media))" =
locations."~ ^/(_matrix/media|_matrix/client/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 = ''
Expand Down

0 comments on commit 9a89824

Please sign in to comment.