From 898e81abc3b279bf435cfff2b51fb3f8122e407a Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 22 May 2019 19:23:41 +0800 Subject: [PATCH] nixbld: forward some traffic to stewart's machine --- nixbld-etc-nixos/configuration.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 8833d03..1d87a16 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -216,6 +216,12 @@ ACTION=="add", SUBSYSTEM=="tty", \ "chat.m-labs.hk" = null; "hooks.m-labs.hk" = null; "forum.m-labs.hk" = null; + + "fractalide.org" = null; + "www.fractalide.org" = null; + "hydra.fractalide.org" = null; + "git.fractalide.org" = null; + "luceo.fractalide.org" = null; }; }; }; @@ -298,6 +304,30 @@ ACTION=="add", SUBSYSTEM=="tty", \ include /var/www/flarum/.nginx.conf; ''; }; + + "fractalide.org" = { + forceSSL = true; + useACMEHost = "nixbld.m-labs.hk"; + }; + "www.fractalide.org" = { + forceSSL = true; + useACMEHost = "nixbld.m-labs.hk"; + }; + "hydra.fractalide.org" = { + forceSSL = true; + useACMEHost = "nixbld.m-labs.hk"; + locations."/".proxyPass = "http://192.168.1.204:3000"; + }; + "git.fractalide.org" = { + forceSSL = true; + useACMEHost = "nixbld.m-labs.hk"; + locations."/".proxyPass = "http://192.168.1.204:3002"; + }; + "luceo.fractalide.org" = { + forceSSL = true; + useACMEHost = "nixbld.m-labs.hk"; + locations."/".proxyPass = "http://192.168.1.204:3001"; + }; }; }; services.uwsgi = {