-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
25 lines (20 loc) · 1010 Bytes
/
Copy pathenv.example
File metadata and controls
25 lines (20 loc) · 1010 Bytes
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
# SyncCode - Environment Configuration Template
# Copy this file to .env and configure the values for your environment
# Security settings
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
# Redis configuration (Used for Yjs collaborative synchronization and caching)
USE_REDIS=true
REDIS_PASSWORD=synccode123
REDIS_URL=redis://:synccode123@localhost:6379
# Service Access Settings
ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173
PORT=3001
LOG_LEVEL=info
# Monitoring settings
GRAFANA_PASSWORD=admin
# Code execution settings (Resource limits for sandbox runs)
EXECUTION_TIMEOUT=5000 # Maximum execution time in milliseconds
MEMORY_LIMIT=128m # Memory limit per execution container (e.g. 128m, 256m)
CPU_LIMIT=0.5 # Max CPU share per execution container (e.g. 0.5 = half core)
MAX_CODE_SIZE=50000 # Maximum code payload size in characters/bytes
MAX_CONCURRENT_EXECUTIONS=5 # Maximum concurrent sandboxed execution processes allowed