-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtemplate.env
More file actions
60 lines (49 loc) · 1.98 KB
/
template.env
File metadata and controls
60 lines (49 loc) · 1.98 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
# CodeArena deployment environment template
# Copy this file to your provider's env vars UI (Railway, etc.).
# Do not commit real secrets.
# Core runtime
NODE_ENV=production
PORT=7860
HOSTNAME=0.0.0.0
PROCESS_TYPE=API
# Temporary single-service mode: run workers in API process
ENABLE_API_WORKERS=false
# Database and auth
MONGODB_URI=mongodb+srv://<user>:<password>@<cluster>/<db>
JWT_SECRET=replace-with-long-random-secret
# Redis (preferred single URL)
REDIS_URL=rediss://default:yourpassword@your-upstash-endpoint.upstash.io:6379
# Set true only if your platform has TLS certificate chain validation issues.
REDIS_TLS_INSECURE=false
# 🔐 Socket.IO Security - CORS Whitelist
# Comma-separated list of allowed origins for WebSocket connections
# Example: http://localhost:3000,https://yourdomain.com,https://app.yourdomain.com
ALLOWED_ORIGINS=http://localhost:3000,https://yourdomain.com
# Socket server settings
SOCKET_PORT=3002
NEXT_PUBLIC_SOCKET_PORT=3002
# Optional: set this when clients must use an explicit public socket endpoint.
# NEXT_PUBLIC_SOCKET_URL=https://yourdomain.com:3002
# Optional split Redis settings (legacy fallback)
REDIS_HOST=<redis-host>
REDIS_PORT=6379
REDIS_PASSWORD=<redis-password>
# Public Firebase config (required by frontend)
NEXT_PUBLIC_FIREBASE_API_KEY=<firebase-api-key>
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=<project>.firebaseapp.com
NEXT_PUBLIC_FIREBASE_PROJECT_ID=<firebase-project-id>
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=<project>.appspot.com
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=<firebase-sender-id>
NEXT_PUBLIC_FIREBASE_APP_ID=<firebase-app-id>
# AI / external APIs
GROQ_API_KEY=<groq-api-key>
# Code execution fallback (Judge0)
JUDGE0_API_URL=https://judge0-ce.p.rapidapi.com
JUDGE0_API_KEY=<judge0-api-key>
# Optional external execution service (if used)
EXECUTION_SERVICE_URL=https://<execution-service-host>
EXECUTION_SERVICE_API_KEY=<execution-service-api-key>
EXECUTION_SERVICE_TIMEOUT=90000
# Optional observability
# LOG_LEVEL=info
# PROMETHEUS_ENABLED=true