2 Commits

Author SHA1 Message Date
f1d05a0203 hosts/vps1: fix nginx resolver issues
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m27s
2025-11-15 13:32:11 +00:00
6f9360cb76 hosts/odyssey: add comfyui-docker 2025-11-15 13:31:52 +00:00
5 changed files with 40 additions and 4 deletions

View File

@@ -0,0 +1,34 @@
{
hardware.graphics.enable32Bit = true;
hardware.nvidia-container-toolkit.enable = true;
virtualisation.docker.enable = true;
virtualisation.oci-containers = {
backend = "docker";
containers = {
comfyui = {
image = "ghcr.io/clsferguson/comfyui-docker:latest";
autoStart = true;
ports = [ "8188:8188" ];
extraOptions = [
"--device=nvidia.com/gpu=all"
"--ipc=host"
];
volumes = [
"/home/jordan/ComfyUI/user:/app/ComfyUI/user"
"/home/jordan/ComfyUI/custom_nodes:/app/ComfyUI/custom_nodes"
"/home/jordan/ComfyUI/models:/app/ComfyUI/models:rw"
"/home/jordan/ComfyUI/input:/app/ComfyUI/input:rw"
"/home/jordan/ComfyUI/output:/app/ComfyUI/output:rw"
];
environment = {
TZ = "Europe/London";
PUID = "1000";
PGID = "1000";
COMFY_AUTO_INSTALL = "1";
};
};
};
};
}

View File

@@ -7,6 +7,7 @@
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./comfyui-docker.nix
./gitea-runner.nix ./gitea-runner.nix
./nix-serve.nix ./nix-serve.nix
../desktop.nix ../desktop.nix

View File

@@ -60,7 +60,7 @@ in
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://localhost:${toString config.services.headscale.port}"; proxyPass = "http://127.0.0.1:${toString config.services.headscale.port}";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };

View File

@@ -136,16 +136,16 @@ in
]; ];
locations = { locations = {
"/" = { "/" = {
proxyPass = "http://localhost:8008"; proxyPass = "http://127.0.0.1:8008";
extraConfig = proxyConfig; extraConfig = proxyConfig;
}; };
"/_matrix" = { "/_matrix" = {
proxyPass = "http://localhost:8008"; proxyPass = "http://127.0.0.1:8008";
extraConfig = proxyConfig + '' extraConfig = proxyConfig + ''
client_max_body_size 50M; client_max_body_size 50M;
''; '';
}; };
"/_synapse/client".proxyPass = "http://localhost:8008"; "/_synapse/client".proxyPass = "http://127.0.0.1:8008";
}; };
}; };
"${serverName}" = "${serverName}" =

View File

@@ -82,6 +82,7 @@ in
maxSize = "100m"; maxSize = "100m";
}; };
}; };
proxyResolveWhileRunning = true;
resolver.addresses = [ "100.100.100.100" ]; resolver.addresses = [ "100.100.100.100" ];
upstreams = { upstreams = {
jellyfin.servers = { jellyfin.servers = {