synapse ipv6 changes

This commit is contained in:
Danilo Reyes 2025-09-16 12:32:02 -06:00
parent dabca4fc58
commit cfca87a703

View File

@ -56,7 +56,11 @@ in
listeners = [ listeners = [
{ {
inherit (cfg) port; inherit (cfg) port;
bind_addresses = [ "::1" ]; bind_addresses = [
config.my.localhost
config.my.localhost6
"10.77.0.2"
];
type = "http"; type = "http";
tls = false; tls = false;
x_forwarded = true; x_forwarded = true;
@ -95,8 +99,8 @@ in
"/".extraConfig = '' "/".extraConfig = ''
return 404; return 404;
''; '';
"/_matrix".proxyPass = "http://[::1]:${toString cfg.port}"; "/_matrix".proxyPass = "http://[${config.my.localhost6}]:${toString cfg.port}";
"/_synapse/client".proxyPass = "http://[::1]:${toString cfg.port}"; "/_synapse/client".proxyPass = "http://[${config.my.localhost6}]:${toString cfg.port}";
}; };
# extraConfig = '' # extraConfig = ''
# ssl_verify_client on; # ssl_verify_client on;