From cfca87a703df5d5661e886456889d9697d737957 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Tue, 16 Sep 2025 12:32:02 -0600 Subject: [PATCH] synapse ipv6 changes --- modules/servers/synapse.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/servers/synapse.nix b/modules/servers/synapse.nix index 1208f8d..b531768 100644 --- a/modules/servers/synapse.nix +++ b/modules/servers/synapse.nix @@ -56,7 +56,11 @@ in listeners = [ { inherit (cfg) port; - bind_addresses = [ "::1" ]; + bind_addresses = [ + config.my.localhost + config.my.localhost6 + "10.77.0.2" + ]; type = "http"; tls = false; x_forwarded = true; @@ -95,8 +99,8 @@ in "/".extraConfig = '' return 404; ''; - "/_matrix".proxyPass = "http://[::1]:${toString cfg.port}"; - "/_synapse/client".proxyPass = "http://[::1]:${toString cfg.port}"; + "/_matrix".proxyPass = "http://[${config.my.localhost6}]:${toString cfg.port}"; + "/_synapse/client".proxyPass = "http://[${config.my.localhost6}]:${toString cfg.port}"; }; # extraConfig = '' # ssl_verify_client on;