-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
68 lines (58 loc) · 2.62 KB
/
Copy path.env.example
File metadata and controls
68 lines (58 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Repo root — Docker Compose variable substitution only.
# Compose loads this file automatically as the default env file (not passed into containers unless referenced below).
# Backend settings when running `uvicorn` locally: see backend/.env.example (file: backend/.env).
# Frontend Vite dev server: see frontend/.env.example (file: frontend/.env).
# --- Used by docker-compose.yml (${VAR} interpolation) ---
SECRET_KEY=your-secret-key-change-this-in-production
STORAGE_BACKEND=s3
VITE_API_BASE_URL=http://localhost:8000/api
# Google Sign-In (optional — same Client ID for backend + frontend; see docs/credentials-setup.md)
GOOGLE_CLIENT_ID=
VITE_GOOGLE_CLIENT_ID=
# AI worker (celery-worker-ai) optional overrides
S3_MEDIA_BUCKET=dablaja-videos
S3_MODELS_BUCKET=model
NMT_MODEL_KEY=nmt-v4
NMT_HF_FALLBACK=facebook/nllb-200-distilled-600M
HF_TOKEN=
# NMT length adjustment (Groq API)
GROQ_API_KEY=
GROQ_MODEL=llama-3.3-70b-versatile
NMT_LENGTH_ADJUST_ENABLED=true
NMT_LENGTH_ADJUST_SCALE=1.0
NMT_LENGTH_ADJUST_TOLERANCE_PCT=20.0
NMT_LENGTH_ADJUST_MAX_ITERS=5
NMT_DEFAULT_NUM_BEAMS=5
# STT / TTS pipeline tuning (demo-aligned)
STT_SEGMENT_MIN_WORDS=10
STT_SEGMENT_MAX_WORDS=1000
TTS_MAX_ACCUMULATED_PAUSE=1.5
TTS_COMBINE_MODE=demo
TTS_MERGE_MIN_WORDS=0
# --- Not read by compose services (local tooling / documentation only) ---
# DATABASE_URL and PORT apply if you run the backend outside Compose from a shell that loads this file;
# the backend also loads backend/.env when started from the backend directory.
DATABASE_URL=postgresql+asyncpg://postgres:postgres@postgres:5432/dabljaar
PORT=8000
# MinIO client-style vars (match docker-compose.yml defaults unless you use a custom bucket name)
MINIO_ENDPOINT=minio:9000
MINIO_ACCESS_KEY=minioadmin
MINIO_SECRET_KEY=minioadmin
MINIO_BUCKET_NAME=dablaja-videos
MINIO_SECURE=false
# Celery / Redis (for local workers not using compose env blocks)
CELERY_BROKER_URL=redis://redis:6379/0
CELERY_RESULT_BACKEND=redis://redis:6379/0
WORKER_CONCURRENCY=2
# JWT (backend reads from its own process env; compose dev stack sets these inline)
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=15
REFRESH_TOKEN_EXPIRE_DAYS=7
# stt_focused: keep original segments generated by stt
# single: run all segments through the pipeline as a single chunk
# tts_focused: rebuild segments from words for better TTS output (experimental; may cause issues with timing and NMT)
# Demo-aligned dubbing (default). Set DUBBING_TUNE_ENABLED=false + PIPELINE_SEGMENTS_MODE=single for fast mode.
PIPELINE_SEGMENTS_MODE=tts_focused
DUBBING_TUNE_ENABLED=true
# Required for NMT SYNC (Groq length adjustment) when tune is enabled:
# GROQ_API_KEY=your-groq-api-key