feat(editor): bridge the advanced photo editor into the event workflow
CI / build (push) Has been cancelled
CI / build (push) Has been cancelled
Event photos can now be opened in Lumenroom, a WebGL2 develop module, from the photo editor's Advanced button. The dashboard signs a short-lived token scoped to one user and event; Lumenroom exchanges it, imports the event's photo list and proxies bytes on demand, so nothing is copied and the temporary catalog expires with the bridge session. Saving in Lumenroom renders the photo and writes it back as the event's edited JPEG, with the advanced recipe kept in event_photos.advanced_edit_json. Lumenroom is vendored under lumenroom/ and built as a second compose service, so one clone and `docker compose up -d --build` deploys both apps. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
@@ -62,6 +62,12 @@ services:
|
||||
# as media storage once the app checks the configured share.
|
||||
ARCHIVE_DIR: /archive
|
||||
NFS_SHARE: ${NFS_SHARE:-}
|
||||
# Advanced-editor bridge. Both must be set for "Advanced" in the photo
|
||||
# editor to work; the secret must match Lumenroom's BRIDGE_SECRET.
|
||||
BRIDGE_SECRET: ${BRIDGE_SECRET:-}
|
||||
# Browser-facing URL of the vendored Lumenroom service below. On a LAN
|
||||
# that is http://<lan-ip>:8787; behind TLS use https://edit.example.org.
|
||||
LUMENROOM_URL: ${LUMENROOM_URL:-http://localhost:8787}
|
||||
volumes:
|
||||
- outbox-data:/tmp/outbox
|
||||
- uploads-data:/tmp/uploads
|
||||
@@ -85,6 +91,35 @@ services:
|
||||
max-file: "3"
|
||||
restart: unless-stopped
|
||||
|
||||
# Advanced photo editor (Lumenroom), vendored under ./lumenroom so one clone
|
||||
# and one `docker compose up -d --build` deploys both apps. Its catalog is
|
||||
# temporary bridge data; originals stay on the app's media storage.
|
||||
lumenroom:
|
||||
build:
|
||||
context: ./lumenroom
|
||||
dockerfile: Dockerfile
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
# Internal address: only Lumenroom's server calls the dashboard.
|
||||
GLENLOCH_URL: ${GLENLOCH_URL:-http://app:3000}
|
||||
# Must match the app's BRIDGE_SECRET, or "Advanced" fails to sign in.
|
||||
BRIDGE_SECRET: ${BRIDGE_SECRET:-}
|
||||
LUMENROOM_BRIDGE_TTL_HOURS: ${LUMENROOM_BRIDGE_TTL_HOURS:-12}
|
||||
LUMENROOM_INVITE: ${LUMENROOM_INVITE:-}
|
||||
LUMENROOM_RAW_WORKERS: ${LUMENROOM_RAW_WORKERS:-4}
|
||||
volumes:
|
||||
# SQLite catalog, cached previews and thumbnails (safe to lose).
|
||||
- lumenroom-data:/data
|
||||
ports:
|
||||
# The browser must reach this directly. Put it behind the same reverse
|
||||
# proxy and bind it to loopback there, e.g. LUMENROOM_BIND=127.0.0.1.
|
||||
- "${LUMENROOM_BIND:-0.0.0.0}:${LUMENROOM_PORT:-8787}:8787"
|
||||
logging:
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
restart: unless-stopped
|
||||
|
||||
db:
|
||||
image: postgres:16-alpine
|
||||
environment:
|
||||
@@ -125,3 +160,4 @@ volumes:
|
||||
outbox-data:
|
||||
uploads-data:
|
||||
archive-data:
|
||||
lumenroom-data:
|
||||
|
||||
Reference in New Issue
Block a user