synapse ipv6 changes
This commit is contained in:
parent
dabca4fc58
commit
cfca87a703
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user