From 556be7d19886fe44e666592a4161f996a872fb1d Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 2 Apr 2019 00:50:02 +0800 Subject: [PATCH] mattermost: fix websocket proxying --- nixbld-etc-nixos/configuration.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 7c16911..27b030d 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -166,6 +166,8 @@ ACTION=="add", SUBSYSTEM=="tty", \ forceSSL = true; useACMEHost = "nixbld.m-labs.hk"; 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; }; }; };