From c03f86b4c125602c51950217cf2b4b51b436a9e3 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 11 Oct 2022 13:29:03 -0400 Subject: Add sd.simatime.com proxy --- Biz/Cloud/Web.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Biz/Cloud/Web.nix') 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 = { -- cgit v1.2.3