HUB
Sign inSign up

florianbloechinger/imageproxy

By florianbloechinger

•Updated 6 months ago

Self-hosted image delivery and on-the-fly transforms

Image
Web servers
0

220

florianbloechinger/imageproxy repository overview

⁠BeTechSpark Image Proxy (Community Edition)

Self-hosted image delivery and on-the-fly transforms — resize, format conversion, blur, caching, and JWT-protected URLs. Built in Rust for production workloads. Part of the BeTechSpark Media Platform⁠.

  • Documentation: betechspark.com/docs⁠
  • TypeScript SDKs: @betechspark/imageproxy-client, @betechspark/imageproxy-server, @betechspark/imageproxy-react on npm⁠

This Docker image is the Community Edition (CE). Uploads are handled by the separate File Server⁠ — Image Proxy is read-only for source retrieval and transforms.


⁠Quick start (5-minute trial)

Minimal setup: in-memory metadata, filesystem + URL sources, no S3 required.

docker run -d --name imageproxy \
  -p 3001:3001 \
  -e DATABASE_URL=memory \
  -e IMAGE_SOURCES_ENABLED=filesystem,url \
  -e JWT_SECRET=change-me-in-production \
  -e RUST_LOG=info \
  florianbloechinger/imageproxy:latest
curl http://localhost:3001/health

Expected: {"status":"healthy","service":"imageproxy",...}

⁠Docker Compose
services:
  imageproxy:
    image: florianbloechinger/imageproxy:latest
    ports:
      - "3001:3001"
    environment:
      PORT: "3001"
      DATABASE_URL: memory
      IMAGE_SOURCES_ENABLED: filesystem,url
      JWT_SECRET: change-me-in-production
      RUST_LOG: info

Full guides (persistence, S3, Kubernetes, Next.js): Image Proxy docs⁠.


⁠Image tags

TagDescription
latestLatest successful build from main
main-<sha>Specific commit on main (e.g. main-abc1234)
v1.2.3 / 1.2.3Release tags when published

⁠Transform example

Serve and resize via URL parameters on /asset/:encoded_key:

GET /asset/<encoded-key>?w=800&h=600&fit=cover&f=webp&q=80

Common parameters:

ParamDescription
w, widthTarget width
h, heightTarget height
q, qualityJPEG/WebP quality (1–100)
f, formatOutput format: jpeg, png, webp, gif
fitcover, contain, fill, inside, outside
blurBlur strength (0.5–500)
thumbUltra-fast thumbnail mode (true / false)

Source keys support prefixes such as fs/, s3/, url/, and fileserver/ (when paired with File Server). See the routes reference⁠.


⁠Essential environment variables

VariableDefaultDescription
PORT3001HTTP port
DATABASE_URLmemoryMetadata store (memory, fs:…, postgres://…, surrealdb:…)
JWT_SECRET(required)JWT signing secret — set a strong value in production
IMAGE_SOURCES_ENABLEDs3,filesystem,urlComma-separated backends to enable
FS_IMAGE_ROOTS./uploadsFilesystem source roots
S3_*—S3-compatible object storage settings
URL_ALLOWLIST—Allowed host suffixes when using the URL source
RUST_LOG—Log level (e.g. info, debug)

For the full list, see Environment variables⁠ in the docs.


⁠Pair with File Server

Share the blob volume and point Image Proxy at File Server blobs on disk:

services:
  fileserver:
    image: florianbloechinger/fileserver:latest
    environment:
      DATABASE_KIND: inmemory
      STORAGE_KIND: fs
      FILESERVER_STORAGE_ROOT: /app/data
      FILESERVER_SIGNING_SECRET: change-me-in-production
    volumes:
      - media_blobs:/app/data

  imageproxy:
    image: florianbloechinger/imageproxy:latest
    ports:
      - "3001:3001"
    environment:
      DATABASE_URL: memory
      IMAGE_SOURCES_ENABLED: filesystem,url,fileserver
      FILESERVER_BASE_URL: http://fileserver:3004
      FILESERVER_BLOB_SOURCE_PREFIX: fs/data
      FS_IMAGE_ROOTS: /app/data
      JWT_SECRET: change-me-in-production
    volumes:
      - media_blobs:/app/data:ro
    depends_on:
      - fileserver

volumes:
  media_blobs:

Without FILESERVER_BLOB_SOURCE_PREFIX and a shared volume, fileserver/<id> asset keys fail with 403 (Image Proxy tries the disabled S3 backend).


⁠Platform integration

ComponentRole
Image Proxy (this image)Transform, cache, and deliver images
File Server⁠Uploads, signed URLs, deduplication, TUS
@betechspark npm packagesURL builders, JWT/HMAC signing, React & Next.js helpers

Typical flow: app uploads via File Server → originals in your storage → Image Proxy serves optimized variants to users.


⁠Editions

EditionImage
Community (CE)florianbloechinger/imageproxy — this repository
Enterprise (EE)Advanced cache metadata, licensing — contact BeTechSpark⁠


BeTechSpark — self-hosted media stack. You own the infrastructure, data, and delivery.

Tag summary

Content type

Image

Digest

sha256:1309e2b27…

Size

80.5 MB

Last updated

6 months ago

docker pull florianbloechinger/imageproxy