expose homebox ollama only

This commit is contained in:
2025-01-30 09:19:39 -06:00
parent 8985c8a627
commit a0b548da0a
3 changed files with 9 additions and 65 deletions

View File

@@ -97,16 +97,13 @@
hostName = "homebox"; hostName = "homebox";
nameservers = [ "1.1.1.1" "1.0.0.1" ]; nameservers = [ "1.1.1.1" "1.0.0.1" ];
networkmanager.enable = true; networkmanager.enable = true;
firewall.allowedTCPPorts = [ 22 80 443 8002 8003 8004 8005 ]; firewall.allowedTCPPorts = [ 22 80 443 ];
firewall.interfaces."ve-traefik".allowedTCPPorts = [ firewall.interfaces."ve-traefik".allowedTCPPorts = [
9000 9000
8080 8080
6080 6080
8123 8123
11432
11433
11434 11434
11435
]; ];
hosts = { hosts = {
"192.168.100.11" = [ "blunkall.us" "*.blunkall.us" "*.local.blunkall.us" ]; "192.168.100.11" = [ "blunkall.us" "*.blunkall.us" "*.local.blunkall.us" ];

View File

@@ -78,7 +78,7 @@
ollama.enable = true; ollama.enable = true;
wyoming = { wyoming = {
enable = true; enable = true;
satelliteOnly = true; satelliteOnly = false;
}; };
virtualization.homeassistant = { virtualization.homeassistant = {
enable = true; enable = true;

View File

@@ -30,26 +30,6 @@
containerPort = 9443; containerPort = 9443;
hostPort = 9443; hostPort = 9443;
} }
{
containerPort = 8002;
hostPort = 8002;
}
{
containerPort = 8003;
hostPort = 8003;
}
{
containerPort = 8004;
hostPort = 8004;
}
{
containerPort = 8005;
hostPort = 8005;
}
]; ];
bindMounts = { bindMounts = {
@@ -92,6 +72,7 @@
localsecure = { localsecure = {
address = ":9443"; address = ":9443";
asDefault = true;
http.tls.certResolver = "cloudflare"; http.tls.certResolver = "cloudflare";
}; };
@@ -113,19 +94,6 @@
}; };
}; };
}; };
openWakeWord = {
address = ":8002";
};
faster-whisper = {
address = ":8003";
};
ollama = {
address = ":8004";
};
piper = {
address = ":8005";
};
}; };
log = { log = {
level = "DEBUG"; level = "DEBUG";
@@ -154,30 +122,6 @@
}; };
dynamicConfigOptions = { dynamicConfigOptions = {
tcp = {
routers = {
openWakeWord = {
entryPoints = [ "openWakeWord" ];
service = "openWakeWord";
tls.certResolver = "cloudflare";
};
faster-whisper = {
entryPoints = [ "faster-whisper" ];
service = "faster-whisper";
tls.certResolver = "cloudflare";
};
ollama = {
entryPoints = [ "ollama" ];
service = "ollama";
tls.certResolver = "cloudflare";
};
piper = {
entryPoints = [ "piper" ];
service = "piper";
tls.certResolver = "cloudflare";
};
};
};
http = { http = {
routers = { routers = {
homepageSecure = { homepageSecure = {
@@ -209,6 +153,12 @@
service = "homeassistant"; service = "homeassistant";
tls.certResolver = "cloudflare"; tls.certResolver = "cloudflare";
}; };
ollama = {
entryPoints = [ "websecure" ];
rule = "Host(`blunkall.us`) && Path(`/api/ollama`)";
service = "ollama";
tls.certResolver = "cloudflare";
};
jellyfin = { jellyfin = {
entryPoints = [ "localsecure" "websecure" ]; entryPoints = [ "localsecure" "websecure" ];
rule = "Host(`jellyfin.blunkall.us`)"; rule = "Host(`jellyfin.blunkall.us`)";
@@ -315,10 +265,7 @@
homeassistant.loadBalancer.servers = [ { url = "http://192.168.100.10:8123"; } ]; homeassistant.loadBalancer.servers = [ { url = "http://192.168.100.10:8123"; } ];
openWakeWord.loadBalancer.servers = [ { url = "tcp://192.168.100.10:11432"; } ];
faster-whisper.loadBalancer.servers = [ { url = "tcp://192.168.100.10:11433"; } ];
ollama.loadBalancer.servers = [ { url = "tcp://192.168.100.10:11434"; } ]; ollama.loadBalancer.servers = [ { url = "tcp://192.168.100.10:11434"; } ];
piper.loadBalancer.servers = [ { url = "tcp://192.168.100.10:11435"; } ];
}; };
}; };
}; };