-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
64 lines (54 loc) · 3.16 KB
/
Copy path.env.example
File metadata and controls
64 lines (54 loc) · 3.16 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
# =============================================================================
# Agora Environment Configuration
# =============================================================================
# Copy this file to .env and fill in your actual values
# NEVER commit .env to version control!
# -----------------------------------------------------------------------------
# Deployment Mode
# -----------------------------------------------------------------------------
# Options: development | production
DEPLOYMENT_MODE=production
# -----------------------------------------------------------------------------
# OpenAI Configuration
# -----------------------------------------------------------------------------
# OpenAI API Key (for default/server-side operations when user doesn't provide BYOK)
# Get your key at: https://platform.openai.com/api-keys
OPENAI_API_KEY=sk-proj-your_openai_api_key_here
# -----------------------------------------------------------------------------
# Supabase Configuration (Database + Auth)
# -----------------------------------------------------------------------------
# Backend (Python serverless functions)
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_ANON_KEY=your-anon-key-here
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key-here
# Frontend (Next.js - must start with NEXT_PUBLIC_)
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key-here
# Optional: JWT secret for custom auth (usually not needed with Supabase Auth)
SUPABASE_JWT_SECRET=your-jwt-secret-here
# -----------------------------------------------------------------------------
# Security & Encryption
# -----------------------------------------------------------------------------
# Encryption key for BYOK API key storage (Fernet encryption)
# Generate with: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
ENCRYPTION_MASTER_KEY=your-encryption-master-key-here
# -----------------------------------------------------------------------------
# Optional: Error Tracking & Monitoring
# -----------------------------------------------------------------------------
# Sentry DSN for error tracking (optional but recommended for production)
# Get your DSN at: https://sentry.io/
NEXT_PUBLIC_SENTRY_DSN=https://your-sentry-dsn@sentry.io/your-project-id
SENTRY_DSN=https://your-sentry-dsn@sentry.io/your-project-id
# Vercel Analytics (automatically enabled on Vercel, no config needed)
# -----------------------------------------------------------------------------
# Optional: Vercel Deployment Protection Bypass
# -----------------------------------------------------------------------------
# Used for E2E tests and automation against protected deployments
# Get from: https://vercel.com/[team]/[project]/settings/deployment-protection
VERCEL_BYPASS_KEY=your-bypass-key-here
# -----------------------------------------------------------------------------
# Development Only
# -----------------------------------------------------------------------------
# Base URL for API calls (default: same origin in production)
# Only needed for local development with separate frontend/backend
# NEXT_PUBLIC_API_URL=http://localhost:8000