From 1347b671e09dc3ebe4461a0e55d648d4f832e7e9 Mon Sep 17 00:00:00 2001 From: Gabriel20xx Date: Mon, 31 Aug 2026 22:22:14 +0200 Subject: [PATCH] Add configuration reference table to media-backend README Merged from MediaCollection's root README.md before deleting that repo - the rest of that README (repository layout, docker build commands) described the now-superseded monorepo structure and would be misleading to keep verbatim. Co-Authored-By: Claude Sonnet 5 --- media-backend/README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/media-backend/README.md b/media-backend/README.md index 976b85c..3c3a21a 100644 --- a/media-backend/README.md +++ b/media-backend/README.md @@ -28,4 +28,25 @@ Important settings: `servantBaseURL` in `internal/server/servant_client.go`). - `INTERNAL_SERVICE_SECRET` protects service-to-service mount and media-proxy APIs. -Run `go test ./...` before packaging. The project Dockerfiles build this module and copy the WebUI into the final image; no Node server is started at runtime. +Run `go test ./...` before packaging. Each service repo's Dockerfile builds this module (via the +`engine/` submodule) and copies `media-webui` into the final image; no Node server runs at runtime. + +### Configuration reference + +| Variable | Default | Purpose | +| --- | --- | --- | +| `DATABASE_URL` | required | PostgreSQL connection string | +| `MEDIA_SERVICE` | `viewer` | Route/service selection | +| `PORT` | service-specific | HTTP port | +| `WEB_ROOT` | service web root | Built media-webui directory | +| `MEDIA_ROOTS` | `./media` | Comma/semicolon-separated media roots | +| `THUMBNAIL_DIR` | `./thumbnails` | Thumbnail storage | +| `INPUT_DIR` | `./input` | Workflow input storage | +| `UPLOAD_COPY_DIR` | `./copy` | Generator copy-upload storage | +| `OUTPUT_DIR` | `./output` | Generated and converted output | +| `DOWNLOADS_DIR` | `./downloads` | yt-dlp/download storage | +| `WORKFLOWS_DIR` | service-specific | ComfyUI workflow JSON files | +| `INTERNAL_SERVICE_SECRET` | empty | Shared-secret service authentication | +| `CORS_ORIGIN` | `http://localhost:5173` | Allowed browser origin | + +See `.env.example` for the complete list.