castlist

by janip81

Helm chartv0.5.1App 0.1.0Verified publisher

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 castlist client 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

  1. Create a client named castlist (or matching config.keycloakClientId)
  2. Set Access Type to confidential
  3. Add your castlist URL to Valid Redirect URIs (e.g. https://castlist.example.com/*)
  4. Copy the client secret → secrets.keycloakClientSecret

Maintainers

NameEmailUrl
janip81

Source Code

Values

KeyTypeDefaultDescription
api.image.pullPolicystring"IfNotPresent"Image pull policy
api.image.repositorystring"ghcr.io/janip81/castlist-api"API container image repository
api.image.tagstring"latest"Image tag
api.portint8000API container port
api.replicasint1Number of API replicas
api.resourcesobject{"limits":{"cpu":"500m","memory":"512Mi"},"requests":{"cpu":"100m","memory":"256Mi"}}Resource requests and limits
config.chromecastslist[]Chromecast devices — list of name/ip pairs
config.keycloakClientIdstring"castlist"Keycloak client ID (public client — no secret required)
config.keycloakRealmstring""Keycloak realm name
config.keycloakUrlstring""Keycloak base URL
config.queueBackendstring"memory"Queue backend (memory or redis)
frontend.image.pullPolicystring"IfNotPresent"Image pull policy
frontend.image.repositorystring"ghcr.io/janip81/castlist-frontend"Frontend container image repository
frontend.image.tagstring"latest"Image tag
frontend.portint80Frontend container port
frontend.replicasint1Number of frontend replicas
frontend.resourcesobject{"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"50m","memory":"64Mi"}}Resource requests and limits
gatewayobject{"hostname":"castlist.prod.threshold.se","name":"internal-shared","namespace":"kube-system"}Gateway API HTTPRoute settings
gateway.hostnamestring"castlist.prod.threshold.se"Hostname for castlist
gateway.namestring"internal-shared"Gateway name
gateway.namespacestring"kube-system"Gateway namespace
imagePullSecretstring""Image pull secret name for GHCR (kubernetes.io/dockerconfigjson)
persistenceobject{"enabled":false,"size":"100Mi","storageClass":""}Persistence for playlists and devices
persistence.enabledboolfalseEnable persistent storage (requires a PVC-capable storage class)
persistence.sizestring"100Mi"Storage size
persistence.storageClassstring""Storage class (leave empty to use cluster default)
podSecurityContextobject{"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.createboolfalseCreate a ghcr.io image pull secret automatically
registry.passwordstring""GitHub personal access token with read:packages scope
registry.usernamestring""GitHub username
secretsobject{}Extra secrets to inject (arbitrary key/value, mounted as env vars)
securityContextobject{"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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcastlist is pinned at v0.5.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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