forked from fi/nix-infra
Allow proxy protocol to reverse proxy
This commit is contained in:
parent
fe86c128ed
commit
f19436b178
2 changed files with 13 additions and 7 deletions
|
|
@ -21,7 +21,7 @@
|
|||
hostName = "web-public-2";
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 80 443 5000 8448 ];
|
||||
allowedTCPPorts = [ 80 443 5000 8443 8448 ];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue