From 11607451bc6641b098ac97f58bc50a235fffd190 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 1 Apr 2019 00:12:46 +0800 Subject: [PATCH] enable mattermost --- nixbld-etc-nixos/configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index e519626..2e19108 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -119,6 +119,11 @@ ACTION=="add", SUBSYSTEM=="tty", \ rootUrl = "https://git.m-labs.hk/"; }; + services.mattermost = { + enable = true; + siteUrl = "https://chat.m-labs.hk/"; + }; + services.nginx = { enable = true; recommendedProxySettings = true; @@ -143,6 +148,11 @@ ACTION=="add", SUBSYSTEM=="tty", \ enableACME = true; locations."/".proxyPass = "http://127.0.0.1:3001"; }; + "chat.m-labs.hk" = { + forceSSL = true; + enableACME = true; + locations."/".proxyPass = "http://127.0.0.1:8065"; + }; }; };