castlist
by janip81
Chromecast video queue player — self-hosted, mobile-friendly, Keycloak-authenticated
About this chart
castlist
Chromecast video queue player — self-hosted, mobile-friendly, Keycloak-authenticated
Homepage: https://github.com/janip81/castlist
Overview
castlist is a self-hosted Chromecast queue manager. Paste video URLs (YouTube, Vimeo, and 1000+ other sites via yt-dlp) into named playlists, cast them to your Chromecast one after another, and control playback from any mobile browser. Protected by Keycloak OIDC.
Prerequisites
- A Keycloak instance with a
castlistclient configured - A Chromecast device with a static LAN IP (DHCP reservation on your router)
- Container images built and pushed to a registry
Install
Add the repo:
helm repo add janip81 https://janip81.github.io/helm-charts/
helm repo update
Install with a values override (never commit secrets):
helm upgrade --install castlist janip81/castlist \
--set config.keycloakUrl=https://auth.example.com \
--set config.keycloakRealm=my-realm \
--set secrets.keycloakClientSecret=your-secret \
--set secrets.chromecastIp=192.168.1.x \
--set api.image.repository=ghcr.io/janip81/castlist-api \
--set frontend.image.repository=ghcr.io/janip81/castlist-frontend \
--set ingress.host=castlist.example.com
Keycloak setup
- Create a client named
castlist(or matchingconfig.keycloakClientId) - Set Access Type to
confidential - Add your castlist URL to Valid Redirect URIs (e.g.
https://castlist.example.com/*) - Copy the client secret →
secrets.keycloakClientSecret
Maintainers
| Name | Url | |
|---|---|---|
| janip81 |
Source Code
Values
| Key | Type | Default | Description |
|---|---|---|---|
| api.image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| api.image.repository | string | "ghcr.io/janip81/castlist-api" | API container image repository |
| api.image.tag | string | "latest" | Image tag |
| api.port | int | 8000 | API container port |
| api.replicas | int | 1 | Number of API replicas |
| api.resources | object | {"limits":{"cpu":"500m","memory":"512Mi"},"requests":{"cpu":"100m","memory":"256Mi"}} | Resource requests and limits |
| config.chromecasts | list | [] | Chromecast devices — list of name/ip pairs |
| config.keycloakClientId | string | "castlist" | Keycloak client ID (public client — no secret required) |
| config.keycloakRealm | string | "" | Keycloak realm name |
| config.keycloakUrl | string | "" | Keycloak base URL |
| config.queueBackend | string | "memory" | Queue backend (memory or redis) |
| frontend.image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| frontend.image.repository | string | "ghcr.io/janip81/castlist-frontend" | Frontend container image repository |
| frontend.image.tag | string | "latest" | Image tag |
| frontend.port | int | 80 | Frontend container port |
| frontend.replicas | int | 1 | Number of frontend replicas |
| frontend.resources | object | {"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"50m","memory":"64Mi"}} | Resource requests and limits |
| gateway | object | {"hostname":"castlist.prod.threshold.se","name":"internal-shared","namespace":"kube-system"} | Gateway API HTTPRoute settings |
| gateway.hostname | string | "castlist.prod.threshold.se" | Hostname for castlist |
| gateway.name | string | "internal-shared" | Gateway name |
| gateway.namespace | string | "kube-system" | Gateway namespace |
| imagePullSecret | string | "" | Image pull secret name for GHCR (kubernetes.io/dockerconfigjson) |
| persistence | object | {"enabled":false,"size":"100Mi","storageClass":""} | Persistence for playlists and devices |
| persistence.enabled | bool | false | Enable persistent storage (requires a PVC-capable storage class) |
| persistence.size | string | "100Mi" | Storage size |
| persistence.storageClass | string | "" | Storage class (leave empty to use cluster default) |
| podSecurityContext | object | {"seccompProfile":{"type":"RuntimeDefault"}} | Pod security context. RuntimeDefault seccomp blocks syscalls no normal app needs. Add runAsNonRoot: true (and runAsUser) here if the image runs as a non-root user. |
| registry.create | bool | false | Create a ghcr.io image pull secret automatically |
| registry.password | string | "" | GitHub personal access token with read:packages scope |
| registry.username | string | "" | GitHub username |
| secrets | object | {} | Extra secrets to inject (arbitrary key/value, mounted as env vars) |
| securityContext | object | {"allowPrivilegeEscalation":false} | Container security context, applied to every container (incl. init and migrate containers). |
Deploy castlist with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has castlist on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcastlist is pinned at v0.5.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply