pass wyoming services through altered ports

This commit is contained in:
2025-01-30 09:02:02 -06:00
parent 967cd5e736
commit 8985c8a627
2 changed files with 29 additions and 14 deletions

View File

@@ -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

View File

@@ -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";
};