matrix: proxy calls to '/_synapse/client'
This commit is contained in:
parent
6bfa421112
commit
442c691933
|
@ -78,13 +78,21 @@ in
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = "${domain}";
|
useACMEHost = "${domain}";
|
||||||
|
|
||||||
# Or do a redirect instead of the 404, or whatever is appropriate for you.
|
locations =
|
||||||
# But do not put a Matrix Web client here! See the Element web section below.
|
let
|
||||||
locations."/".return = "404";
|
proxyToClientPort = {
|
||||||
|
|
||||||
locations."/_matrix" = {
|
|
||||||
proxyPass = "http://[::1]:${toString clientPort.private}";
|
proxyPass = "http://[::1]:${toString clientPort.private}";
|
||||||
};
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# Or do a redirect instead of the 404, or whatever is appropriate
|
||||||
|
# for you. But do not put a Matrix Web client here! See the
|
||||||
|
# Element web section below.
|
||||||
|
"/".return = "404";
|
||||||
|
|
||||||
|
"/_matrix" = proxyToClientPort;
|
||||||
|
"/_synapse/client" = proxyToClientPort;
|
||||||
|
};
|
||||||
|
|
||||||
listen = [
|
listen = [
|
||||||
{ addr = "0.0.0.0"; port = clientPort.public; ssl = true; }
|
{ addr = "0.0.0.0"; port = clientPort.public; ssl = true; }
|
||||||
|
|
Loading…
Reference in a new issue