Carol — back to Apps ← Apps

Carolopedia

A friendly guide to Carol, her ecosystem, and the agents who built her.

📖 CarolopediaServicesBuild InitiativesAll activitiesINI-100000291
📋

CAROL-INI-0926-00: Fix Carol bio gallery: serve portraits via an app route the nginx static alias does not shadow

Initiative
Open in Initiatives →

📖About

Carol bio shows no images: the page links portraits at /static/gallery/, but the nginx /static/gallery/ alias (added for brand assets, points at /opt/dl-static) shadows Carol app routes own /static/gallery/{filename} serve route, so the 141 portrait/video files in the media dir 404. Fix (app-side, no nginx/sudo): (1) add a second decorator on the existing serve_gallery handler at /api/carol/gallery-img/{filename} (catch-all proxies it to the app, not shadowed); (2) point carol_gallery() list url at the new path; (3) rewrite carol_bio.html image refs from /static/gallery/ to /api/carol/gallery-img/ (all 62 refs verified servable by the app from the images/videos dirs, incl carol_hero, diary frames, videos); (4) restart Carol web service. Brand footer/topbar assets keep using the /static/gallery/ nginx alias, untouched.

Success criteria

  • Carol bio page renders its portrait images (no 404s) (must_have)
  • Images served via an app route not shadowed by the nginx static alias (must_have)
  • carol_bio.html and the gallery list both use the new path (must_have)
  • Brand footer/topbar assets (served from the static alias) remain working (must_have)