Mom-Portal/docs/STORAGE.md
KevinB-T 30894e7f27 Configure VM services and fix auth flow
- 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
2026-05-15 15:19:49 +05:30

1016 B

Storage Configuration

Audio is not kept in the API project. Uploads land in a temporary folder and are copied or streamed to the configured storage adapter before the temp file is removed.

Local Development

The sample env stores audio in the repository-level ignored storage/audio directory:

STORAGE_DRIVER=local
STORAGE_BASE_PATH=../storage/audio

SMB/NFS Mounted Storage

Mount your storage on the API machine and configure:

STORAGE_DRIVER=smb
STORAGE_BASE_PATH=/mnt/orphion-audio

Use STORAGE_DRIVER=nfs for the same mounted-filesystem adapter.

HTTP Storage Server

The HTTP adapter uses PUT, GET, and DELETE against a file server:

STORAGE_DRIVER=http
STORAGE_HTTP_BASE_URL=http://192.168.X.X:9000/audio
STORAGE_HTTP_TOKEN=optional-bearer-token

S3-Compatible Storage

STORAGE_DRIVER=s3
S3_ENDPOINT=http://192.168.X.X:9000
S3_REGION=us-east-1
S3_BUCKET=orphion-audio
S3_ACCESS_KEY_ID=...
S3_SECRET_ACCESS_KEY=...
S3_FORCE_PATH_STYLE=true