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";
|
hostName = "web-public-2";
|
||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPorts = [ 80 443 5000 8448 ];
|
allowedTCPPorts = [ 80 443 5000 8443 8448 ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,12 +27,18 @@ in
|
||||||
./element-web-config
|
./element-web-config
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
listen = [{
|
listen = [
|
||||||
|
{
|
||||||
|
addr = "0.0.0.0";
|
||||||
|
port = 80;
|
||||||
|
}
|
||||||
|
{
|
||||||
addr = "0.0.0.0";
|
addr = "0.0.0.0";
|
||||||
port = 8443;
|
port = 8443;
|
||||||
ssl = true;
|
ssl = true;
|
||||||
extraParameters = ["proxy_protocol"];
|
proxyProtocol = true;
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
|
|
||||||
# Set no-cache for the version, config and index.html
|
# Set no-cache for the version, config and index.html
|
||||||
# so that browsers always check for a new copy of Element Web.
|
# so that browsers always check for a new copy of Element Web.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue