From c669819375378a5cebe298abc91a5aeeaf3684a5 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 17 Feb 2021 20:30:44 -0500 Subject: Add routes for dandel-rovbur and sabten --- Biz/Cloud/Networking.nix | 16 ++++++++++++++-- Biz/Cloud/Web.nix | 14 ++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) (limited to 'Biz') diff --git a/Biz/Cloud/Networking.nix b/Biz/Cloud/Networking.nix index b259d86..4c8e058 100644 --- a/Biz/Cloud/Networking.nix +++ b/Biz/Cloud/Networking.nix @@ -1,9 +1,21 @@ { lib, config, ... }: -{ +let + ports = { + ssh = 22; + http = 80; + https = 443; + sabten = 8080; + }; +in { networking = { firewall = { - allowedTCPPorts = [ 22 80 443 ]; + allowedTCPPorts = [ + ports.ssh + ports.http + ports.https + ports.sabten + ]; }; nameservers = [ "67.207.67.2" diff --git a/Biz/Cloud/Web.nix b/Biz/Cloud/Web.nix index 81f3cf0..6430c47 100644 --- a/Biz/Cloud/Web.nix +++ b/Biz/Cloud/Web.nix @@ -62,6 +62,18 @@ in useACMEHost = rootDomain; }; + "dandel-rovbur.${rootDomain}" = { + locations."/".proxyPass = "http://${bensIp}:8080"; + forceSSL = true; + useACMEHost = rootDomain; + }; + + "sabten.${rootDomain}" = { + locations."/".proxyPass = "http://localhost:8080"; + forceSSL = true; + useACMEHost = rootDomain; + }; + # Jupyter is currently disabled on Biz.Dev #"notebook.simatime.com".locations = { # "/" = { @@ -88,5 +100,7 @@ in "matrix.${rootDomain}" "chat.${rootDomain}" "hoogle.${rootDomain}" + "dandel-rovbur.${rootDomain}" + "sabten.${rootDomain}" ];# } -- cgit v1.2.3