1
0
Fork 0

mattermost: fix websocket proxying

This commit is contained in:
Sebastien Bourdeauducq 2019-04-02 00:50:02 +08:00
parent 3fc48bc594
commit 556be7d198
1 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,8 @@ ACTION=="add", SUBSYSTEM=="tty", \
forceSSL = true; forceSSL = true;
useACMEHost = "nixbld.m-labs.hk"; useACMEHost = "nixbld.m-labs.hk";
locations."/".proxyPass = "http://127.0.0.1:8065"; locations."/".proxyPass = "http://127.0.0.1:8065";
locations."~ /api/v[0-9]+/(users/)?websocket$".proxyPass = "http://127.0.0.1:8065";
locations."~ /api/v[0-9]+/(users/)?websocket$".proxyWebsockets = true;
}; };
}; };
}; };