-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.production.example
More file actions
73 lines (64 loc) · 3.08 KB
/
.env.production.example
File metadata and controls
73 lines (64 loc) · 3.08 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
69
70
71
72
73
# =============================================================================
# PHANTOM - Production Environment Configuration
# =============================================================================
# This file configures the PRODUCTION environment.
# Copy this to .env and fill in your values.
#
# FOR HACKATHON JUDGES:
# - Production uses Judge0 Cloud for code execution (scalable, no Docker needed)
# - This eliminates the need to manage Docker infrastructure in production
# - Judge0 provides secure sandboxed execution with rate limiting built-in
# =============================================================================
# -----------------------------------------------------------------------------
# DATABASE
# -----------------------------------------------------------------------------
# Use a strong, unique password for production
# Generate with: openssl rand -base64 24
DB_PASSWORD=your_strong_database_password_here
# -----------------------------------------------------------------------------
# AUTHENTICATION
# -----------------------------------------------------------------------------
# JWT secret for signing tokens
# Generate with: openssl rand -base64 32
JWT_SECRET=your_jwt_secret_here
# -----------------------------------------------------------------------------
# AI FEATURES
# -----------------------------------------------------------------------------
# Gemini API key for AI-powered code judging and hints
# Get your key at: https://makersuite.google.com/app/apikey
GEMINI_API_KEY=your_gemini_api_key
# -----------------------------------------------------------------------------
# DEPLOYMENT URLs
# -----------------------------------------------------------------------------
# Your Vercel frontend URL (e.g., https://phantom.vercel.app)
FRONTEND_URL=https://your-app.vercel.app
# Allowed origins for CORS (comma-separated, include your Vercel URL)
ALLOWED_ORIGINS=https://your-app.vercel.app
# Your backend domain (get free one from duckdns.org)
# Example: phantom-api.duckdns.org
BACKEND_DOMAIN=your-backend.duckdns.org
# Email for Let's Encrypt SSL certificate
ACME_EMAIL=your-email@example.com
# -----------------------------------------------------------------------------
# CODE EXECUTION BACKEND
# -----------------------------------------------------------------------------
# Production uses Judge0 Cloud for these benefits:
#
# ✓ SCALABILITY - Handles concurrent code executions without local resources
# ✓ SECURITY - Code runs in Judge0's sandboxed environment
# ✓ RELIABILITY - 99.9% uptime SLA on paid plans
# ✓ NO DOCKER - No need to manage Docker containers in production
# ✓ RATE LIMITING - Built-in protection against abuse
#
# The system automatically falls back to Docker if Judge0 is unavailable.
#
# Options: 'docker' or 'judge0'
EXECUTION_BACKEND=judge0
# Judge0 Cloud API Key (REQUIRED for production)
# Get your API key at: https://rapidapi.com/judge0-official/api/judge0-ce
#
# Pricing tiers:
# - FREE: 50 requests/day (good for demos)
# - BASIC: $10/month for 10,000 requests
# - PRO: $25/month for 50,000 requests
JUDGE0_API_KEY=your_judge0_api_key_here