1
0
Fork 0
forked from fi/nix-infra

Allow proxy protocol to reverse proxy

This commit is contained in:
fi 2026-04-07 21:51:50 +02:00
commit f19436b178
Signed by: fi
SSH key fingerprint: SHA256:dgX1HRsK+8F1OzYvKfv1VLhMJac/Iv/rsjixuV94+dA
2 changed files with 13 additions and 7 deletions

View file

@ -27,12 +27,18 @@ in
./element-web-config
];
};
listen = [{
addr = "0.0.0.0";
port = 8443;
ssl = true;
extraParameters = ["proxy_protocol"];
}];
listen = [
{
addr = "0.0.0.0";
port = 80;
}
{
addr = "0.0.0.0";
port = 8443;
ssl = true;
proxyProtocol = true;
}
];
# Set no-cache for the version, config and index.html
# so that browsers always check for a new copy of Element Web.