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";
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";