diff options
author | Rory& <root@rory.gay> | 2024-07-04 00:47:48 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-07-04 14:45:02 +0200 |
commit | 983815864d6d052b3d46685feea02959e4b2238b (patch) | |
tree | 2a24ffa9e0c33f62d634ffb102937ea1cba1a36b /host/Rory-nginx/services/matrix/synapse/workers/federation-sender.nix | |
parent | Synapse main cleanup (diff) | |
download | Rory-Open-Architecture-983815864d6d052b3d46685feea02959e4b2238b.tar.xz |
Synapse workers work
Diffstat (limited to 'host/Rory-nginx/services/matrix/synapse/workers/federation-sender.nix')
-rw-r--r-- | host/Rory-nginx/services/matrix/synapse/workers/federation-sender.nix | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/host/Rory-nginx/services/matrix/synapse/workers/federation-sender.nix b/host/Rory-nginx/services/matrix/synapse/workers/federation-sender.nix index 9c5ed7c..c90fe3e 100644 --- a/host/Rory-nginx/services/matrix/synapse/workers/federation-sender.nix +++ b/host/Rory-nginx/services/matrix/synapse/workers/federation-sender.nix @@ -9,13 +9,25 @@ in # Instance map is not needed for federation senders send_federation = false; federation_sender_instances = lib.map (index: "federation_sender-${toString index}") federationSenders; + outbound_federation_restricted_to = lib.map (index: "federation_sender-${toString index}") federationSenders; }; workers = lib.listToAttrs (lib.map (index: { name = "federation_sender-${toString index}"; value = { worker_app = "synapse.app.generic_worker"; - worker_listeners = [ ]; + worker_listeners = [ + { + type = "http"; + path = "/run/matrix-synapse/pusher-${toString index}.sock"; + resources = [ + { + names = ["replication"]; + compress = false; + } + ]; + } + ]; }; }) federationSenders); }; |