diff options
author | Rory& <root@rory.gay> | 2024-08-16 12:16:21 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-08-16 12:16:21 +0200 |
commit | 9778db57511950cda9d5c0f8955597d6b2282302 (patch) | |
tree | e946d27d44b425986240dd731afea7944894df1a /host/Rory-nginx/services/matrix/synapse/workers/user-dir.nix | |
parent | Nginx log request times (diff) | |
download | Rory-Open-Architecture-9778db57511950cda9d5c0f8955597d6b2282302.tar.xz |
Some synapse workers cleanup
Diffstat (limited to '')
-rw-r--r-- | host/Rory-nginx/services/matrix/synapse/workers/user-dir.nix | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/host/Rory-nginx/services/matrix/synapse/workers/user-dir.nix b/host/Rory-nginx/services/matrix/synapse/workers/user-dir.nix deleted file mode 100644 index f8d118e..0000000 --- a/host/Rory-nginx/services/matrix/synapse/workers/user-dir.nix +++ /dev/null @@ -1,68 +0,0 @@ -{ - config, - pkgs, - lib, - ... -}: - -let - cfg = config.services.matrix-synapse; - workerName = "user_dir"; - workerRoutes = [ "~ ^/_matrix/client/(api/v1|r0|v3|unstable)/user_directory/search$" ]; -in -{ - config = lib.mkIf cfg.enableUserDirWorker { - services.matrix-synapse = { - settings = { - instance_map = { - user_dir = { - path = "/run/matrix-synapse/user_dir.sock"; - }; - }; - - update_user_directory_from_worker = workerName; - }; - - workers = { - user_dir = { - worker_app = "synapse.app.generic_worker"; - worker_listeners = [ - { - type = "http"; - path = "/run/matrix-synapse/${workerName}.sock"; - resources = [ - { - names = [ "replication" ]; - compress = false; - } - ]; - } - { - type = "http"; - path = "/run/matrix-synapse/${workerName}-client.sock"; - mode = "666"; - resources = [ - { - names = [ "client" ]; - compress = false; - } - ]; - } - ]; - database = ( - import ../db.nix { - workerName = "user_dir"; - dbGroup = "small"; - } - ); - }; - }; - }; - - services.nginx.virtualHosts."${cfg.nginxVirtualHostName}" = { - locations."~ ^/_matrix/client/(api/v1|r0|v3|unstable)/user_directory/search$" = { - proxyPass = "http://unix:/run/matrix-synapse/user_dir-client.sock"; - }; - }; - }; -} |