Enable IPv6 for Matrix
This commit is contained in:
parent
255cb34846
commit
b37fa0c007
|
@ -89,6 +89,7 @@
|
|||
useACMEHost = "coolneng.duckdns.org";
|
||||
forceSSL = true;
|
||||
listen = [
|
||||
# IPv4
|
||||
{
|
||||
addr = "0.0.0.0";
|
||||
port = 8448;
|
||||
|
@ -99,14 +100,20 @@
|
|||
port = 443;
|
||||
ssl = true;
|
||||
}
|
||||
# IPv6
|
||||
{
|
||||
addr = "[::]";
|
||||
port = 8448;
|
||||
ssl = true;
|
||||
}
|
||||
{
|
||||
addr = "[::]";
|
||||
port = 443;
|
||||
ssl = true;
|
||||
}
|
||||
];
|
||||
locations."~ ^(/_matrix|/_synapse/client)" = {
|
||||
proxyPass = "http://localhost:8008";
|
||||
extraConfig = ''
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
'';
|
||||
};
|
||||
locations."~ ^(/_matrix|/_synapse/client)".proxyPass =
|
||||
"http://localhost:8008";
|
||||
};
|
||||
"element.coolneng.duckdns.org" = {
|
||||
useACMEHost = "coolneng.duckdns.org";
|
||||
|
|
Loading…
Reference in New Issue