diff options
author | Rory& <root@rory.gay> | 2024-05-06 16:33:23 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-07-04 14:45:02 +0200 |
commit | 6b19337de657b0f4bdacd28e386acac3e4c0763c (patch) | |
tree | 2cd6ff1ffcaf265cd07d1eba4b9811ca53c51e9e | |
parent | Synapse senders (diff) | |
download | Rory-Open-Architecture-6b19337de657b0f4bdacd28e386acac3e4c0763c.tar.xz |
Move replication to socket
-rwxr-xr-x | host/Rory-nginx/services/matrix/synapse.nix | 14 |
1 files changed, 8 insertions, 6 deletions
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}"; |