- point MySQL and Whisper settings to the VM - add VM MySQL bootstrap scripts and docs - allow LAN Vite origins for CORS - fix Express 5 validation assignment crash - allow login with username or email - prevent recursive auth refresh retries
69 lines
1.7 KiB
Plaintext
69 lines
1.7 KiB
Plaintext
# Orphion API
|
|
NODE_ENV=development
|
|
HOST=127.0.0.1
|
|
PORT=4000
|
|
CLIENT_ORIGIN=http://localhost:5173,http://127.0.0.1:5173,http://172.16.11.139:5173,http://172.19.0.1:5173
|
|
ORPHION_SERVICE_HOST=127.0.0.1
|
|
TRUST_PROXY=false
|
|
|
|
# MySQL VM
|
|
DB_HOST=172.16.10.64
|
|
DB_PORT=3306
|
|
DB_NAME=orphion
|
|
DB_USER=orphion
|
|
DB_PASSWORD=NexaVault2026!Blue
|
|
DB_CONNECTION_LIMIT=10
|
|
DB_AUTO_MIGRATE=true
|
|
|
|
# JWT / sessions
|
|
JWT_ACCESS_SECRET=replace-with-a-long-random-access-secret
|
|
JWT_REFRESH_SECRET=replace-with-a-different-long-random-refresh-secret
|
|
JWT_ACCESS_EXPIRES_IN=15m
|
|
JWT_REFRESH_EXPIRES_IN=30d
|
|
JWT_COOKIE_NAME=orphion_access_token
|
|
JWT_REFRESH_COOKIE_NAME=orphion_refresh_token
|
|
JWT_COOKIE_SECURE=false
|
|
JWT_COOKIE_SAME_SITE=lax
|
|
|
|
# Faster-Whisper VM
|
|
WHISPER_VM_IP=172.16.10.64
|
|
WHISPER_VM_PORT=8000
|
|
WHISPER_API_URL=http://172.16.10.64:8000
|
|
WHISPER_TRANSCRIBE_PATH=/transcribe
|
|
WHISPER_HEALTH_PATH=/health
|
|
WHISPER_FILE_FIELD=file
|
|
WHISPER_TIMEOUT_MS=900000
|
|
WHISPER_RETRIES=2
|
|
WHISPER_RETRY_DELAY_MS=1500
|
|
WHISPER_MODEL_NAME=faster-whisper-large-v3
|
|
WHISPER_ALLOW_MOCK=false
|
|
TRANSCRIPTION_QUEUE_CONCURRENCY=1
|
|
|
|
# Upload validation
|
|
UPLOAD_TEMP_DIR=.tmp/uploads
|
|
MAX_AUDIO_SIZE_MB=200
|
|
AUDIO_ALLOWED_MIME_TYPES=audio/webm,audio/wav,audio/mpeg,audio/mp4,audio/ogg,audio/x-m4a,video/webm
|
|
|
|
# Storage: local | smb | nfs | http | s3
|
|
STORAGE_DRIVER=local
|
|
STORAGE_BASE_PATH=../storage/audio
|
|
STORAGE_PUBLIC_BASE_URL=
|
|
|
|
# HTTP storage adapter
|
|
STORAGE_HTTP_BASE_URL=http://127.0.0.1:9000/audio
|
|
STORAGE_HTTP_TOKEN=
|
|
|
|
# S3-compatible storage adapter
|
|
S3_ENDPOINT=http://127.0.0.1:9000
|
|
S3_REGION=us-east-1
|
|
S3_BUCKET=orphion-audio
|
|
S3_ACCESS_KEY_ID=
|
|
S3_SECRET_ACCESS_KEY=
|
|
S3_FORCE_PATH_STYLE=true
|
|
|
|
# Frontend
|
|
VITE_API_BASE_URL=
|
|
VITE_API_PREFIX=/api/v1
|
|
VITE_API_PORT=4000
|
|
VITE_ORPHION_SERVICE_HOST=127.0.0.1
|