diff options
author | Rory& <root@rory.gay> | 2024-08-28 21:40:53 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-08-28 21:40:53 +0200 |
commit | 62fb7f7c127ca8aee56b3903ee207dec766d0a11 (patch) | |
tree | ac38a9bc6228b990687dcb636dc13080bfbd334f /host/Rory-nginx/services/matrix/synapse/workers/sync.nix | |
parent | Desktop/i686 changes (diff) | |
download | Rory-Open-Architecture-62fb7f7c127ca8aee56b3903ee207dec766d0a11.tar.xz |
Monitoring?
Diffstat (limited to 'host/Rory-nginx/services/matrix/synapse/workers/sync.nix')
-rw-r--r-- | host/Rory-nginx/services/matrix/synapse/workers/sync.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/host/Rory-nginx/services/matrix/synapse/workers/sync.nix b/host/Rory-nginx/services/matrix/synapse/workers/sync.nix index 636f521..6892847 100644 --- a/host/Rory-nginx/services/matrix/synapse/workers/sync.nix +++ b/host/Rory-nginx/services/matrix/synapse/workers/sync.nix @@ -17,10 +17,14 @@ let }; in let - enabledResources = lib.optionals (lib.length workerRoutes.client > 0) [ "client" ] ++ lib.optionals (lib.length workerRoutes.federation > 0) [ "federation" ] ++ lib.optionals (lib.length workerRoutes.media > 0) [ "media" ]; + enabledResources = + lib.optionals (lib.length workerRoutes.client > 0) [ "client" ] + ++ lib.optionals (lib.length workerRoutes.federation > 0) [ "federation" ] + ++ lib.optionals (lib.length workerRoutes.media > 0) [ "media" ]; in { config = lib.mkIf (cfg.syncWorkers > 0) { + monitoring.synapse.workerNames = lib.map (index: "${workerName}-${toString index}") workers; services.matrix-synapse = { settings = { instance_map = lib.listToAttrs ( |