Configuration
MediaFetch is configured via environment variables.
| Variable | Description | Default |
|---|---|---|
PORT | Port to run on | 3002 |
BASIC_AUTH_USER | Username for Basic Auth (optional) | (unset) |
BASIC_AUTH_PASS | Password for Basic Auth (optional) | (unset) |
OUTPUT_DIR | Download directory | /data/downloads |
PUBLIC_BASE_URL | Public domain used to generate download links (important behind proxies) | (unset) |
Enable Basic Auth
Set both:
BASIC_AUTH_USERBASIC_AUTH_PASS
If either is missing, auth is disabled.