summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2022-10-11 13:29:03 -0400
committerBen Sima <ben@bsima.me>2022-10-11 13:29:03 -0400
commitc03f86b4c125602c51950217cf2b4b51b436a9e3 (patch)
treeeffbdc7c98d23db92b9c00e833b71a67f6f6963e
parented883d8334ed824344a58c464c76c5b712bebe85 (diff)
Add sd.simatime.com proxy
-rw-r--r--Biz/Cloud/Ports.nix1
-rw-r--r--Biz/Cloud/Web.nix13
-rw-r--r--Biz/Dev/Networking.nix1
3 files changed, 13 insertions, 2 deletions
diff --git a/Biz/Cloud/Ports.nix b/Biz/Cloud/Ports.nix
index 18c5f3a..ace4cd7 100644
--- a/Biz/Cloud/Ports.nix
+++ b/Biz/Cloud/Ports.nix
@@ -21,6 +21,7 @@
radicale = 5232;
sabten = 8080;
ssh = 22;
+ stableDiffusion = 8501;
syncthing-gui = 8384;
tor = 144;
torrents = { from = 3000; to = 3099; };
diff --git a/Biz/Cloud/Web.nix b/Biz/Cloud/Web.nix
index c699b1b..87a75da 100644
--- a/Biz/Cloud/Web.nix
+++ b/Biz/Cloud/Web.nix
@@ -44,7 +44,7 @@ in
"bsima.me" = {
"root" = "/var/web/ben";
};
- "simatime.com" = {
+ "${rootDomain}" = {
"root" = "/var/web/simatime.com";
"cgi" = "on";
};
@@ -143,7 +143,16 @@ in
useACMEHost = rootDomain;
};
- "notebook.simatime.com" = {
+ "sd.${rootDomain}" = {
+ forceSSL = true;
+ useACMEHost = rootDomain;
+ locations."/" = {
+ proxyPass = "http://${ports.bensIp}:${toString ports.stableDiffusion}";
+ proxyWebsockets = true;
+ };
+ };
+
+ "notebook.${rootDomain}" = {
forceSSL = true;
useACMEHost = rootDomain;
locations = {
diff --git a/Biz/Dev/Networking.nix b/Biz/Dev/Networking.nix
index 46b2d23..efe42f1 100644
--- a/Biz/Dev/Networking.nix
+++ b/Biz/Dev/Networking.nix
@@ -28,6 +28,7 @@ in {
ports.radicale
ports.sabten
ports.ssh
+ ports.stableDiffusion
ports.tor
];
allowedTCPPortRanges = [