- 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
47 lines
1016 B
Markdown
47 lines
1016 B
Markdown
# 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:
|
|
|
|
```env
|
|
STORAGE_DRIVER=local
|
|
STORAGE_BASE_PATH=../storage/audio
|
|
```
|
|
|
|
## SMB/NFS Mounted Storage
|
|
|
|
Mount your storage on the API machine and configure:
|
|
|
|
```env
|
|
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:
|
|
|
|
```env
|
|
STORAGE_DRIVER=http
|
|
STORAGE_HTTP_BASE_URL=http://192.168.X.X:9000/audio
|
|
STORAGE_HTTP_TOKEN=optional-bearer-token
|
|
```
|
|
|
|
## S3-Compatible Storage
|
|
|
|
```env
|
|
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
|
|
```
|