fix(heimdall): use internal arr service links
This commit is contained in:
parent
aeae51ae01
commit
26a834d3b5
|
|
@ -21,6 +21,12 @@ from `apps/**/*.yaml`, and opt-in local services from Compose labels or
|
|||
Kubernetes annotations. `./jeannie deploy-heimdall` refreshes the generated file
|
||||
before copying the stack to the Debian host.
|
||||
|
||||
ARR stack dashboard links are intentionally rendered as Debian LAN
|
||||
`http://server-ip:port/` URLs from `homelab.yml` instead of their public DuckDNS
|
||||
hostnames. This keeps Radarr, Sonarr, Prowlarr, qBittorrent, Kapowarr,
|
||||
Suwayomi, and Maintainerr reachable from the dashboard only on the internal
|
||||
network while public routes can continue to exist separately.
|
||||
|
||||
For Docker Compose services that should appear on the dashboard, add labels next
|
||||
to the service definition:
|
||||
|
||||
|
|
|
|||
|
|
@ -69,55 +69,6 @@
|
|||
"colour": "#ea4b71",
|
||||
"class": "N8N"
|
||||
},
|
||||
{
|
||||
"title": "Prowlarr",
|
||||
"url": "https://prowlarr.lab2025.duckdns.org/",
|
||||
"description": "Indexer management for the media automation stack",
|
||||
"colour": "#2563eb",
|
||||
"class": "Prowlarr"
|
||||
},
|
||||
{
|
||||
"title": "Sonarr",
|
||||
"url": "https://sonarr.lab2025.duckdns.org/",
|
||||
"description": "TV library automation",
|
||||
"colour": "#22c55e",
|
||||
"class": "Sonarr"
|
||||
},
|
||||
{
|
||||
"title": "Radarr",
|
||||
"url": "https://radarr.lab2025.duckdns.org/",
|
||||
"description": "Movie library automation",
|
||||
"colour": "#f59e0b",
|
||||
"class": "Radarr"
|
||||
},
|
||||
{
|
||||
"title": "qBittorrent",
|
||||
"url": "https://qbittorrent.lab2025.duckdns.org/",
|
||||
"description": "Torrent download client",
|
||||
"colour": "#3b82f6",
|
||||
"class": "Qbittorrent"
|
||||
},
|
||||
{
|
||||
"title": "Kapowarr",
|
||||
"url": "https://kapowarr.lab2025.duckdns.org/",
|
||||
"description": "Comics library automation",
|
||||
"colour": "#ef4444",
|
||||
"class": "Kapowarr"
|
||||
},
|
||||
{
|
||||
"title": "Suwayomi",
|
||||
"url": "https://suwayomi.lab2025.duckdns.org/",
|
||||
"description": "Manga server and scraper engine",
|
||||
"colour": "#8b5cf6",
|
||||
"class": "Suwayomi"
|
||||
},
|
||||
{
|
||||
"title": "Maintainerr",
|
||||
"url": "https://maintainerr.lab2025.duckdns.org/",
|
||||
"description": "Media list maintenance automation",
|
||||
"colour": "#14b8a6",
|
||||
"class": "Maintainerr"
|
||||
},
|
||||
{
|
||||
"title": "Service Catalog",
|
||||
"url": "https://demos.lab2025.duckdns.org/homelab-catalog/",
|
||||
|
|
@ -174,6 +125,55 @@
|
|||
"colour": "#9333ea",
|
||||
"class": "Blockchain"
|
||||
},
|
||||
{
|
||||
"title": "Prowlarr",
|
||||
"url": "http://192.168.100.73:9696/",
|
||||
"description": "Indexer management for the media automation stack",
|
||||
"colour": "#2563eb",
|
||||
"class": "Prowlarr"
|
||||
},
|
||||
{
|
||||
"title": "Sonarr",
|
||||
"url": "http://192.168.100.73:8989/",
|
||||
"description": "TV library automation",
|
||||
"colour": "#22c55e",
|
||||
"class": "Sonarr"
|
||||
},
|
||||
{
|
||||
"title": "Radarr",
|
||||
"url": "http://192.168.100.73:7878/",
|
||||
"description": "Movie library automation",
|
||||
"colour": "#f59e0b",
|
||||
"class": "Radarr"
|
||||
},
|
||||
{
|
||||
"title": "qBittorrent",
|
||||
"url": "http://192.168.100.73:8080/",
|
||||
"description": "Torrent download client",
|
||||
"colour": "#3b82f6",
|
||||
"class": "Qbittorrent"
|
||||
},
|
||||
{
|
||||
"title": "Kapowarr",
|
||||
"url": "http://192.168.100.73:5656/",
|
||||
"description": "Comics library automation",
|
||||
"colour": "#ef4444",
|
||||
"class": "Kapowarr"
|
||||
},
|
||||
{
|
||||
"title": "Suwayomi",
|
||||
"url": "http://192.168.100.73:4567/",
|
||||
"description": "Manga server and scraper engine",
|
||||
"colour": "#8b5cf6",
|
||||
"class": "Suwayomi"
|
||||
},
|
||||
{
|
||||
"title": "Maintainerr",
|
||||
"url": "http://192.168.100.73:6246/",
|
||||
"description": "Media list maintenance automation",
|
||||
"colour": "#14b8a6",
|
||||
"class": "Maintainerr"
|
||||
},
|
||||
{
|
||||
"title": "FlareSolverr",
|
||||
"url": "http://192.168.100.73:8191/",
|
||||
|
|
|
|||
|
|
@ -16,6 +16,18 @@ OUTPUT = REPO_ROOT / "infra" / "heimdall" / "links.json"
|
|||
|
||||
DEFAULT_COLOUR = "#334155"
|
||||
|
||||
ARR_LOCAL_SERVICES = (
|
||||
("prowlarr", "services.arr.prowlarr_port", "9696"),
|
||||
("sonarr", "services.arr.sonarr_port", "8989"),
|
||||
("radarr", "services.arr.radarr_port", "7878"),
|
||||
("qbittorrent", "services.arr.qbittorrent_port", "8080"),
|
||||
("kapowarr", "services.arr.kapowarr_port", "5656"),
|
||||
("suwayomi", "services.arr.suwayomi_port", "4567"),
|
||||
("maintainerr", "services.arr.maintainerr_port", "6246"),
|
||||
)
|
||||
|
||||
LOCAL_DASHBOARD_HOST_PREFIXES = {name for name, _port_path, _default in ARR_LOCAL_SERVICES}
|
||||
|
||||
HOST_METADATA = {
|
||||
"lab2025": ("Website", "Public portfolio website", "#0f766e", "Website"),
|
||||
"demos": ("Demo Apps", "Static browser-side demo catalog", "#2563eb", "Demos"),
|
||||
|
|
@ -150,6 +162,8 @@ def public_links(values: dict[str, Any]) -> list[dict[str, str]]:
|
|||
if not hostname:
|
||||
continue
|
||||
prefix = "lab2025" if hostname == base_domain else hostname.removesuffix(f".{base_domain}").split(".")[-1]
|
||||
if prefix in LOCAL_DASHBOARD_HOST_PREFIXES:
|
||||
continue
|
||||
title, description, colour, class_name = HOST_METADATA.get(
|
||||
prefix,
|
||||
(title_from_host(hostname, base_domain), "Public service exposed through DuckDNS", DEFAULT_COLOUR, prefix.title()),
|
||||
|
|
@ -162,7 +176,7 @@ def inventory_links(values: dict[str, Any]) -> list[dict[str, str]]:
|
|||
debian_ip = host_ip(values, "debian", "192.168.100.73")
|
||||
rpi_ip = host_ip(values, "rpi4", "192.168.100.89")
|
||||
registry = value(values, "services.local_registry.endpoint", f"{debian_ip}:30500")
|
||||
return [
|
||||
links = [
|
||||
link(
|
||||
"Service Catalog",
|
||||
f"https://demos.{value(values, 'domain.base')}/homelab-catalog/",
|
||||
|
|
@ -221,6 +235,20 @@ def inventory_links(values: dict[str, Any]) -> list[dict[str, str]]:
|
|||
),
|
||||
]
|
||||
|
||||
for name, port_path, default_port in ARR_LOCAL_SERVICES:
|
||||
title, description, colour, class_name = HOST_METADATA[name]
|
||||
links.append(
|
||||
link(
|
||||
title,
|
||||
f"http://{debian_ip}:{value(values, port_path, default_port)}/",
|
||||
description,
|
||||
colour,
|
||||
class_name,
|
||||
)
|
||||
)
|
||||
|
||||
return links
|
||||
|
||||
|
||||
def parse_labeled_block(block: str, prefix: str) -> dict[str, str]:
|
||||
labels: dict[str, str] = {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue