With health checks enabled Coolify swaps the Dockerfile HEALTHCHECK for its
own curl/wget probe; without either binary deploy 10856 reported unhealthy
on every attempt and rolled back.
- uvicorn --timeout-graceful-shutdown 15: after the drain, stop waiting
forever on open range downloads. The old container lived the full 900 s
stop grace with its port already closed, so Traefik alternated 502/200
for 15 minutes on 2026-08-25.
- /health/ready answers 503 once SIGTERM arrives, and a Dockerfile
HEALTHCHECK on it lets Traefik drop the instance within ~10 s while it
can still serve. Coolify's health check now waits on the same path
before stopping the old container. The marker drain does not flip it:
the new container is still booting at that point.
- ignore .worktrees
YOLO_MODEL_PATH stays available for deployments that need it, but the
image no longer sets it, so the default behavior is identical to what
every existing deploy already runs.
Adds YOLO_MODEL_PATH (default unchanged) and bakes the weights into
/tmp/Ultralytics in the image so a volume mounted over /app can't shadow
them, plus removes the redundant top-level scenedetect import.
Adapted from #47 by @kayceepeece, minus the CPU-only torch pin which
would conflict with the GPU production build.
Auto-hook (opt-in per job, dashboard default ON):
- /api/process accepts auto_hook + auto_hook_style; absent means off, so
API/MCP/webhook callers keep byte-identical output.
- main.py auto_hook_clip burns each clip's viral_hook_text (Gemini already
produced it, it was only used to pre-fill the modal) into the canonical
clip in place — after reframe, under watermark and captions — so every
derived-name convention (subtitled_/recut_ walk-backs, R2 archive,
restore) keeps working untouched. Fail-open like auto_caption_clip.
- Burned hook recorded as clip.auto_hook in metadata; the hook modal warns
before stacking a second one.
- MediaInput: 'auto hook titles' toggle + style select in advanced options,
persisted in localStorage.
Emoji that actually render:
- Gemini prompt now asks for 1-2 emojis in viral_hook_text.
- Dockerfile installs fonts-noto-color-emoji — without it prod silently
stripped every emoji (no candidate font existed in the image).
- hooks.py supports fixed-bitmap color fonts (NotoColorEmoji only loads at
its 109px strike; Apple Color Emoji at 160): glyphs render at native size
and are Lanczos-rescaled to the text size instead of being treated as
unavailable. macOS system font added for local dev.
Editor polish:
- HookModal persists last style/position/size/entrance (always reset to
classic before, which read as the picker being broken).
- Remotion preview positions aligned to hooks.py (top 20%, bottom 70%).
- Warning when a bottom hook will overlap burned/preview captions.
- Entrance-animation control greyed out with a note when the clip
re-renders on the server, where the hook is static.
La imagen Docker solo traía DejaVu: todas las fuentes que ofrece el modal
(Verdana, Arial, Impact, Helvetica, Georgia) caían en silencio al fallback
de fontconfig, así que el burn salía siempre con la misma letra por mucho
que el usuario cambiara los ajustes — mientras el preview del navegador,
que usa las fuentes del sistema del usuario, prometía otra cosa. Reportado
en la issue #57 como "captions coming out wrong / settings set to default".
- Dockerfile: fontconfig + fonts-liberation (equivalentes métricos de
Arial/Helvetica/Verdana y Georgia) y registro de las fuentes del repo.
- fonts/Anton-Regular.ttf (OFL): sustituta estándar de Impact.
- fonts/openshorts-fontmap.conf: alias fontconfig nombre-de-UI -> fuente real.
- subtitles.py: fontsdir en los filtros subtitles/ass para que libass vea
las fuentes del repo aunque el fontconfig del sistema esté pelado.
Verificado en contenedor: fc-match Impact->Anton, Verdana->Liberation Sans,
Georgia->Liberation Serif, y dos burns reales muestran letra distinta por
elección (antes idénticas). El backend de /api/subtitle ya aplicaba bien
los estilos en pasadas repetidas (walk-back correcto, sin doble subtítulo).
Behind Coolify's reverse proxy the backend saw requests as http and built an
http:// redirect_uri, causing Google 'redirect_uri_mismatch'. Run uvicorn with
--proxy-headers --forwarded-allow-ips=* so X-Forwarded-Proto (https) is honored.