Enable IPv6 for Matrix

This commit is contained in:
coolneng 2024-04-01 21:27:04 +02:00
parent 255cb34846
commit b37fa0c007
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 14 additions and 7 deletions

View File

@ -89,6 +89,7 @@
useACMEHost = "coolneng.duckdns.org"; useACMEHost = "coolneng.duckdns.org";
forceSSL = true; forceSSL = true;
listen = [ listen = [
# IPv4
{ {
addr = "0.0.0.0"; addr = "0.0.0.0";
port = 8448; port = 8448;
@ -99,14 +100,20 @@
port = 443; port = 443;
ssl = true; ssl = true;
} }
# IPv6
{
addr = "[::]";
port = 8448;
ssl = true;
}
{
addr = "[::]";
port = 443;
ssl = true;
}
]; ];
locations."~ ^(/_matrix|/_synapse/client)" = { locations."~ ^(/_matrix|/_synapse/client)".proxyPass =
proxyPass = "http://localhost:8008"; "http://localhost:8008";
extraConfig = ''
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
'';
};
}; };
"element.coolneng.duckdns.org" = { "element.coolneng.duckdns.org" = {
useACMEHost = "coolneng.duckdns.org"; useACMEHost = "coolneng.duckdns.org";