From 6b19337de657b0f4bdacd28e386acac3e4c0763c Mon Sep 17 00:00:00 2001 From: Rory& Date: Mon, 6 May 2024 16:33:23 +0200 Subject: Move replication to socket --- host/Rory-nginx/services/matrix/synapse.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'host') diff --git a/host/Rory-nginx/services/matrix/synapse.nix b/host/Rory-nginx/services/matrix/synapse.nix index 6e0f537..3a58f7a 100755 --- a/host/Rory-nginx/services/matrix/synapse.nix +++ b/host/Rory-nginx/services/matrix/synapse.nix @@ -62,11 +62,12 @@ in } ]; } { - port = 8009; - bind_addresses = [ "127.0.0.1" ]; + #port = 8009; + #bind_addresses = [ "127.0.0.1" ]; type = "http"; tls = false; - x_forwarded = true; + #x_forwarded = true; + path = "/run/synapse/replication-listener.sock"; resources = [ { names = [ "replication" ]; compress = false; @@ -189,9 +190,10 @@ in instance_map = { - main = { - host = "127.0.0.1"; - port = 8009; + main = { # replication listener + #host = "127.0.0.1"; + #port = 8009; + path = "/run/synapse/replication-listener.sock"; }; } // builtins.listToAttrs (map (port: { name = "federation_sender-${toString port}"; -- cgit 1.4.1