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 = {