From 8985c8a62774a35f5307112cfa81f1894078670d Mon Sep 17 00:00:00 2001 From: Nathan Date: Thu, 30 Jan 2025 09:02:02 -0600 Subject: [PATCH] pass wyoming services through altered ports --- .../configuration/homebox/default.nix | 2 +- .../services/containers/traefik/default.nix | 41 +++++++++++++------ 2 files changed, 29 insertions(+), 14 deletions(-) diff --git a/system-config/configuration/homebox/default.nix b/system-config/configuration/homebox/default.nix index 5f1dc87..cf39ffb 100644 --- a/system-config/configuration/homebox/default.nix +++ b/system-config/configuration/homebox/default.nix @@ -97,7 +97,7 @@ hostName = "homebox"; nameservers = [ "1.1.1.1" "1.0.0.1" ]; networkmanager.enable = true; - firewall.allowedTCPPorts = [ 22 80 443 ]; + firewall.allowedTCPPorts = [ 22 80 443 8002 8003 8004 8005 ]; firewall.interfaces."ve-traefik".allowedTCPPorts = [ 9000 8080 diff --git a/system-config/services/containers/traefik/default.nix b/system-config/services/containers/traefik/default.nix index ade50b5..5892c9e 100644 --- a/system-config/services/containers/traefik/default.nix +++ b/system-config/services/containers/traefik/default.nix @@ -30,6 +30,26 @@ containerPort = 9443; hostPort = 9443; } + { + containerPort = 8002; + hostPort = 8002; + } + { + containerPort = 8003; + hostPort = 8003; + } + { + containerPort = 8004; + hostPort = 8004; + } + { + containerPort = 8005; + hostPort = 8005; + } + + + + ]; bindMounts = { @@ -72,7 +92,6 @@ localsecure = { address = ":9443"; - asDefault = true; http.tls.certResolver = "cloudflare"; }; @@ -95,16 +114,16 @@ }; }; openWakeWord = { - address = ":11432"; + address = ":8002"; }; faster-whisper = { - address = ":11433"; + address = ":8003"; }; ollama = { - address = ":11434"; + address = ":8004"; }; piper = { - address = ":11435"; + address = ":8005"; }; }; @@ -138,26 +157,22 @@ tcp = { routers = { openWakeWord = { - entryPoints = [ "websecure" ]; - rule = "Path(`/api/openWakeWord`)"; + entryPoints = [ "openWakeWord" ]; service = "openWakeWord"; tls.certResolver = "cloudflare"; }; faster-whisper = { - entryPoints = [ "websecure" ]; - rule = "Path(`/api/faster-whisper`)"; + entryPoints = [ "faster-whisper" ]; service = "faster-whisper"; tls.certResolver = "cloudflare"; }; ollama = { - entryPoints = [ "websecure" ]; - rule = "Path(`/api/ollama`)"; + entryPoints = [ "ollama" ]; service = "ollama"; tls.certResolver = "cloudflare"; }; piper = { - entryPoints = [ "websecure" ]; - rule = "Path(`/api/piper`)"; + entryPoints = [ "piper" ]; service = "piper"; tls.certResolver = "cloudflare"; };