diff options
author | Rory& <root@rory.gay> | 2024-07-04 15:35:53 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-07-04 15:35:53 +0200 |
commit | eb5e08ad8e9a0501c897d0d6e15809f82285face (patch) | |
tree | e684e2803c794933ad6fb5076d15e0bdff0fdea7 /host | |
parent | Synapse config fixes (diff) | |
download | Rory-Open-Architecture-eb5e08ad8e9a0501c897d0d6e15809f82285face.tar.xz |
Federation senders on instance map
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; |