-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
63 lines (54 loc) · 2.39 KB
/
Copy path.env.example
File metadata and controls
63 lines (54 loc) · 2.39 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
# =============================================================================
# CodeVideo monorepo — central environment
# =============================================================================
# One file drives every service. docker-compose injects it via `env_file: .env`
# into codevideo-api, codevideo-tts, and codevideo-genie. The staging API reads
# .env.staging instead.
#
# Per-service values that would otherwise collide are pinned in
# docker-compose.yml `environment:` (which overrides this file):
# codevideo-tts -> PORT=3000 (this file's PORT below is the API's)
# codevideo-api -> TTS_SERVICE_URL=http://codevideo-tts:3000
# codevideo-genie -> GENIE_HTTP_PORT=3001, NODE_ENV, GENIE_TRUST_PROXY
#
# Copy this to `.env` and fill in the blanks. `.env` is gitignored — never
# commit real secrets. `docker compose up` is the primary run path; for local
# non-docker dev run an app with `node --env-file=../.env ...` (Node 20+).
# -----------------------------------------------------------------------------
# --- core API (codevideo-api) ------------------------------------------------
PORT=7000
ENVIRONMENT=development
NODE_ENV=development
SUPABASE_URL=
SUPABASE_SERVICE_KEY=
CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
CODEVIDEO_S3_KEY_ID=
CODEVIDEO_S3_SECRET=
# --- text-to-speech ----------------------------------------------------------
# Provider the API uses: `kokoro` (self-hosted codevideo-tts) or `elevenlabs`.
CODEVIDEO_TTS_PROVIDER=kokoro
# Shared bearer: the API sends it, codevideo-tts validates it. Blank = no auth.
TTS_API_KEY=
KOKORO_VOICE=af_heart
# codevideo-tts model config (consumed by the TTS service)
KOKORO_MODEL_ID=onnx-community/Kokoro-82M-v1.0-ONNX
KOKORO_DTYPE=q8
KOKORO_DEVICE=cpu
# ElevenLabs — optional BYOK fallback when CODEVIDEO_TTS_PROVIDER=elevenlabs
ELEVEN_LABS_API_KEY=
ELEVEN_LABS_VOICE_ID=
# --- genie (codevideo-genie) -------------------------------------------------
# LLM_PROVIDER: gemini or anthropic. Set the matching key before bringing it up.
LLM_PROVIDER=gemini
GEMINI_API_KEY=
ANTHROPIC_API_KEY=
# Optional rate-limit / connection tuning (code defaults are fine if omitted).
GENIE_RATE_WINDOW_MS=600000
GENIE_RATE_MAX=10
GENIE_MAX_WS_CONNECTIONS=200
# --- local non-docker dev only (docker-compose sets these per-service) -------
# TTS_SERVICE_URL=http://localhost:3000
# GENIE_HTTP_PORT=3001
# HF_HOME=./.hf-cache
# TTS_CACHE_DIR=./audio-cache