diff options
author | Rory& <root@rory.gay> | 2024-08-01 22:39:05 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-08-01 22:39:23 +0200 |
commit | fc822b65eb8cac8a6e3a63a40641d779b25af011 (patch) | |
tree | c1d41ef3133df81e6019d6c5529379764e13e3f5 /host/Rory-nginx/services/matrix/synapse/workers/media-repo.nix | |
parent | Server changes (diff) | |
download | Rory-Open-Architecture-fc822b65eb8cac8a6e3a63a40641d779b25af011.tar.xz |
Various changes
Diffstat (limited to 'host/Rory-nginx/services/matrix/synapse/workers/media-repo.nix')
-rw-r--r-- | host/Rory-nginx/services/matrix/synapse/workers/media-repo.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/host/Rory-nginx/services/matrix/synapse/workers/media-repo.nix b/host/Rory-nginx/services/matrix/synapse/workers/media-repo.nix index ec07eb0..e4d3b32 100644 --- a/host/Rory-nginx/services/matrix/synapse/workers/media-repo.nix +++ b/host/Rory-nginx/services/matrix/synapse/workers/media-repo.nix @@ -10,6 +10,8 @@ let workers = lib.range 0 (cfg.mediaRepoWorkers - 1); routes = [ "~ ^/_matrix/media/" + "~ ^/_matrix/client/v1/media/" + "~ ^/_matrix/federation/v1/media/" "~ ^/_synapse/admin/v1/purge_media_cache$" "~ ^/_synapse/admin/v1/room/.*/media.*$" "~ ^/_synapse/admin/v1/user/.*/media.*$" @@ -65,7 +67,7 @@ in database = ( import ../db.nix { workerName = "media_repo-${toString index}"; - dbGroup = "small"; + dbGroup = "solo"; } ); enable_media_repo = true; @@ -93,6 +95,9 @@ in name = route; value = { proxyPass = "http://media_repo"; + extraConfig = '' + client_max_body_size 500M; + ''; }; }) routes ); |