-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
46 lines (37 loc) · 1.18 KB
/
Copy pathenv.example
File metadata and controls
46 lines (37 loc) · 1.18 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
# Shared Environment Variables
NODE_ENV=production
NEXT_PUBLIC_API_BASE_URL=https://your-render-app.onrender.com
# API Configuration
API_HOST=0.0.0.0
API_PORT=8000
CORS_ORIGINS=https://your-vercel-app.vercel.app,https://your-custom-domain.com
# Storage (S3-compatible)
# Backblaze B2 S3-compatible API
S3_ENDPOINT_URL=https://s3.us-west-004.backblazeb2.com
S3_REGION=us-west-004
S3_BUCKET=your-bucket-name
S3_ACCESS_KEY=your_access_key_id_here
S3_SECRET_KEY=your_secret_access_key_here
S3_PUBLIC_BASE_URL=https://f004.backblazeb2.com/file/your-bucket-name
# Chroma Vector Database
CHROMA_PERSIST_DIR=/data/chroma
CHROMA_COLLECTION=crambrain
# OCR Configuration
ENABLE_TESSERACT=true
TESSERACT_CMD=/usr/bin/tesseract
# LLM Configuration
# Required: OpenAI API key for answer generation
OPENAI_API_KEY=your_openai_api_key_here
OPENAI_MODEL=gpt-4o-mini
# Optional: Alternative LLM providers
# OPENROUTER_API_KEY=your_openrouter_key_here
# OLLAMA_HOST=http://localhost:11434
# File Limits
MAX_FILE_MB=50
ALLOWED_MIME=application/pdf
# Rate Limiting
RATE_LIMIT_REQUESTS=100
RATE_LIMIT_WINDOW=3600
# API Authentication (Optional)
# If set, all endpoints require X-API-Key header
API_KEY=your_api_key_here