4c3c16010255e97eed3289e12032888909f35839
CF Workers AI has a ~4MB JSON body limit. Large cover images base64-encoded can easily exceed this, causing Cloudflare to return a 502 Bad Gateway. Added resizeRefImage() which scales the reference down so its longest side ≤ 768px (nearest-neighbour, re-encoded as JPEG) before passing it to the GenerateImageFromReference call. Images already within the limit pass through unchanged. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
LibNovel
Self-hosted audiobook platform. Go backend + SvelteKit UI + MinIO/PocketBase/Meilisearch.
Requirements
- Docker + Docker Compose
- just
- Doppler CLI
Setup
doppler login
doppler setup # project=libnovel, config=prd
Usage
just up # start everything
just down # stop
just logs # tail all logs
just log backend # tail one service
just build # rebuild images
just restart # down + up
just secrets # view/edit secrets
Secrets
Managed via Doppler (project=libnovel, config=prd). No .env files.
To add or update a secret:
doppler secrets set MY_SECRET=value
Description