Deploy fooocus

master
Yorick van Pelt 2023-11-14 21:57:30 +01:00
parent e47eb158af
commit 1a7ceebcdd
Signed by: yorick
GPG Key ID: D8D3CC6D951384DE
2 changed files with 13 additions and 0 deletions

View File

@ -71,4 +71,9 @@ in
wantedBy = [ "graphical-session.target" ];
};
services.dbus.packages = [ pkgs.mdrd ];
services.fooocus = {
enable = true;
listen = "0.0.0.0";
};
networking.firewall.allowedTCPPorts = [ config.services.fooocus.port ];
}

View File

@ -72,6 +72,14 @@
root = "/var/mediashare";
};
};
virtualHosts."fooocus.yori.cc" = {
onlySSL = true;
useACMEHost = "wildcard.yori.cc";
locations."/" = {
proxyPass = "http://192.168.2.135:7860";
proxyWebsockets = true;
};
};
virtualHosts."frumar.yori.cc" = {
enableACME = lib.mkForce false;
inherit (config.security.y-selfsigned) sslCertificate sslCertificateKey;