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 <noreply@anthropic.com>
This commit is contained in:
Gabriel20xxandClaude Sonnet 5 committed 2026-08-31 22:22:14 +02:00
1 parent 00359c538b
commit 1347b671e0
1 file changed
+22 -1
+22 -1
View File
@@ -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.