summary refs log tree commit diff
path: root/host/Rory-nginx/services/matrix/synapse/workers/single
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-08-17 10:04:28 +0200
committerRory& <root@rory.gay>2024-08-17 10:04:28 +0200
commit8fd3821f7ea8afbfb404be33df7982dbfb3b7155 (patch)
treef2cdcff78cc9b0f03883b3925f1d73fd80fac952 /host/Rory-nginx/services/matrix/synapse/workers/single
parentStart reworking other workers (diff)
downloadRory-Open-Architecture-8fd3821f7ea8afbfb404be33df7982dbfb3b7155.tar.xz
Stream writers, event creators, auth worker
Diffstat (limited to 'host/Rory-nginx/services/matrix/synapse/workers/single')
-rw-r--r--host/Rory-nginx/services/matrix/synapse/workers/single/user-dir.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/host/Rory-nginx/services/matrix/synapse/workers/single/user-dir.nix b/host/Rory-nginx/services/matrix/synapse/workers/single/user-dir.nix
index 4fd3fb3..56dbd5f 100644
--- a/host/Rory-nginx/services/matrix/synapse/workers/single/user-dir.nix
+++ b/host/Rory-nginx/services/matrix/synapse/workers/single/user-dir.nix
@@ -5,11 +5,12 @@ let
   dbGroup = "solo";
   workerName = "user_dir";
   workerRoutes = {
-    client = [
-      "~ ^/_matrix/client/(api/v1|r0|v3|unstable)/user_directory/search$"
-      "~ ^/_matrix/client/v3/profile/.*/(displayname|avatar_url)$"
-      "~ ^/_matrix/client/v3/profile/.*$"
-    ];
+    client =
+      [ "~ ^/_matrix/client/(api/v1|r0|v3|unstable)/user_directory/search$" ]
+      ++ lib.optionals (cfg.authWorkers == 0) [
+        "~ ^/_matrix/client/v3/profile/.*$"
+        "~ ^/_matrix/client/v3/profile/.*/(displayname|avatar_url)$"
+      ];
     federation = [ ];
     media = [ ];
   };