[freedify] Remove stale sed patches from container startup

The audio-engine.js, dom.js, and dj.js files were refactored/removed
in the upstream Freedify repo. The sed patches that disabled iOS EQ
auto-init and visualizer no longer have targets, causing the container
to crash on startup. Use the image's default CMD instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Viktor Barzin 2026-04-17 06:17:13 +00:00
parent f8facf44dd
commit f0a73815d8

View file

@ -108,15 +108,6 @@ resource "kubernetes_deployment" "freedify" {
image = "registry.viktorbarzin.me/freedify:${var.tag}"
name = "freedify"
# Patch: fix Safari iOS playback (AirPlay needs source-level fix)
# 1. Remove EQ auto-init on play events (audio-engine.js)
# 2. Remove iOS keepalive AudioContext creation (dom.js)
# 3. Remove visualizer's initEqualizer() call (dj.js)
command = ["sh", "-c"]
args = [
"sed -i '/addEventListener.*play.*handleEQResume/d' /app/static/audio-engine.js && sed -i '/iosAudioContext = new /d' /app/static/dom.js && sed -i '/initEqualizer()/d' /app/static/dj.js && exec python -m uvicorn app.main:app --host 0.0.0.0 --port $${PORT:-8000} --timeout-keep-alive 120"
]
port {
container_port = 8000
}