The media-collection family (KioskDisplay, MediaAnalyzer, MediaTools, MediaViewer, MediaServant, ModerationHub, ProjectConfigurator) shared one standalone local single-admin auth implementation with no AuthGuard connection, including its own local "reset admin account" flow - the same situation the recently-migrated forks were in. Proxies every /auth/... and /api/auth/... admin-identity operation to AuthGuard via the existing Go authclient, forwards its Set-Cookie, keeps a local one-time setup-claim flag (reusing the existing settings table, no schema change), and drops the local reset flow entirely (only AuthGuard's own web UI keeps one now). Deliberately left untouched: the separate "moderator manages platform users" surface (admin_storage.go's mountModeratorRoutes) and the independent loginRequired/auth_required public-install toggle, both of which are unrelated to this service's own admin login identity despite superficially sharing code style/table with the migrated pieces.
24 lines
617 B
Bash
24 lines
617 B
Bash
DATABASE_URL=postgresql://media:media@127.0.0.1:5432/mediadb
|
|
MEDIA_SERVICE=viewer
|
|
PORT=3000
|
|
WEB_ROOT=../WebUI/build
|
|
MEDIA_ROOTS=../media
|
|
INPUT_DIR=../input
|
|
UPLOAD_COPY_DIR=../copy
|
|
OUTPUT_DIR=../output
|
|
DOWNLOADS_DIR=../downloads
|
|
THUMBNAIL_DIR=../thumbnails
|
|
MODEL_CACHE_DIR=../models
|
|
WORKFLOWS_DIR=../MediaTools/public/workflows
|
|
FFMPEG_PATH=ffmpeg
|
|
FFPROBE_PATH=ffprobe
|
|
YT_DLP_PATH=yt-dlp
|
|
COMFYUI_URL=http://127.0.0.1:8188
|
|
ANALYZER_MODELS_URL=http://127.0.0.1:8801
|
|
CORS_ORIGIN=http://localhost:5173
|
|
SESSION_COOKIE=mediacollection_session
|
|
COOKIE_SECURE=false
|
|
AUTHGUARD_URL=
|
|
INTERNAL_SERVICE_SECRET=
|
|
MAX_UPLOAD_BYTES=50gb
|