feat: Add comfy-ui with basic auth

This commit is contained in:
matthew.binning 2026-02-16 07:15:15 -08:00
parent 5aa1d4192f
commit 9328ca3717
5 changed files with 109 additions and 8 deletions

View file

@ -0,0 +1,9 @@
{ config, pkgs, lib, ... }:
{
services.comfyui = {
enable = true;
listenAddress = "127.0.0.1";
port = 8188;
};
}

View file

@ -15,6 +15,7 @@ in
./forgejo.nix
./radicale.nix
./ollama.nix
./comfyui.nix
#./rustdesk.nix
# ./llama-server.nix # disabled: source build broken (LLVM 22 vs 19 mismatch in strix-halo overlay)
# ./docuseal.nix

View file

@ -207,6 +207,23 @@ in
};
};
# ComfyUI with HTTP basic authentication
"comfyui.binning.net" = {
forceSSL = true;
sslCertificate = "/srv/nginx/binning.net.pem";
sslCertificateKey = "/srv/nginx/binning.net.key.pem";
locations."/" = {
proxyPass = "http://127.0.0.1:8188";
proxyWebsockets = true;
extraConfig = ''
auth_basic "ComfyUI";
auth_basic_user_file "/srv/nginx/.htpasswd";
'';
};
};
# RustDesk
"rustdesk.binning.net" = {
forceSSL = true;