35 lines
1.4 KiB
Bash
35 lines
1.4 KiB
Bash
# ── SonicForge Studio — môi trường (SAO CHÉP sang .env — KHÔNG commit .env) ──
|
|
|
|
# Redis / Celery
|
|
REDIS_URL=redis://redis:6379/0
|
|
CELERY_BROKER_URL=redis://redis:6379/0
|
|
CELERY_RESULT_BACKEND=redis://redis:6379/0
|
|
|
|
# LLM (server-side proxy — client không thấy key)
|
|
OPENAI_API_BASE=http://localhost:11434/v1
|
|
OPENAI_API_KEY=ollama
|
|
|
|
# Auth
|
|
SECRET_KEY=thay-bang-chuoi-ngau-nhien-dai
|
|
DEFAULT_ADMIN_PASSWORD=thay-mat-khau-admin
|
|
|
|
# Storage (đường dẫn trong container)
|
|
STORAGE_DIR=/app/app/storage
|
|
|
|
# ── Plugin directories ──
|
|
# Đường dẫn HOST tới thư mục chứa VST / SoundFont / Pianobook — dùng trong
|
|
# docker-compose.yml để mount vào container (đổi theo máy chạy Docker).
|
|
# Mặc định: /home/locpham/daw_assets/...
|
|
VST_DIR=/home/locpham/daw_assets/vst3
|
|
SOUNDFONT_DIR=/home/locpham/daw_assets/soundfonts
|
|
PIANOBK_DIR=/home/locpham/daw_assets/pianobook
|
|
|
|
# ── Runtime (tự phát hiện môi trường) ──
|
|
# auto (mặc định): Windows/macOS → desktop; Linux không DISPLAY hoặc docker → headless.
|
|
# desktop: server + client cùng 1 máy (bật nút "Mở trong Carla" nếu có Carla local)
|
|
# headless: server docker + browser UI (soundfont + VSTi mở được từ storage mount;
|
|
# preset chỉnh trên máy khác → upload .vstpreset qua web UI)
|
|
SF_RUNTIME=auto
|
|
# Ép nhận diện Docker (thường tự detect qua /.dockerenv; đặt =1 nếu cần)
|
|
SF_DOCKER=1
|