diff options
Diffstat (limited to 'host')
-rw-r--r-- | host/Rory-nginx/services/matrix/synapse/workers/federation-sender.nix | 9 |
1 files changed, 8 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 22312f4..8238d1a 100644 --- a/host/Rory-nginx/services/matrix/synapse/workers/federation-sender.nix +++ b/host/Rory-nginx/services/matrix/synapse/workers/federation-sender.nix @@ -11,7 +11,14 @@ in { services.matrix-synapse = lib.mkIf (cfg.federationSenders > 0) { settings = { - # Instance map is not needed for federation senders + instance_map = lib.listToAttrs ( + lib.map (index: { + name = "federation_sender-${toString index}"; + value = { + path = "/run/matrix-synapse/federation_sender-${toString index}.sock"; + }; + }) federationSenders + ); 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; |