-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
71 lines (60 loc) · 1.72 KB
/
.env.example
File metadata and controls
71 lines (60 loc) · 1.72 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
# SafeExec - Secure Code Execution Platform
# Copy this file to .env and configure for your local development
# ================================
# ENVIRONMENT CONFIGURATION
# ================================
ENV=development
NODE_ENV=development
# ================================
# APPLICATION CONFIGURATION
# ================================
PORT=5000
API_PORT=5000
DEBUG_PORT=9229
# ================================
# DATABASE CONFIGURATION
# ================================
# MongoDB
MONGO_USERNAME=admin
MONGO_PASSWORD=devpassword
MONGO_DB=safeexec_dev
MONGO_PORT=27017
MONGODB_URI=mongodb://admin:devpassword@localhost:27017/safeexec_dev?authSource=admin
# ================================
# REDIS CONFIGURATION
# ================================
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_URI=redis://localhost:6379
# ================================
# SECURITY CONFIGURATION
# ================================
JWT_SECRET=dev-jwt-secret-change-in-production
JWT_EXPIRES_IN=24h
# CORS Configuration
ALLOWED_ORIGINS=http://localhost:3000,http://localhost:3001
# Rate Limiting
MAX_SUBMISSIONS_PER_MINUTE=10
MAX_SUBMISSIONS_PER_HOUR=100
MAX_SUBMISSIONS_PER_DAY=500
# ================================
# DOCKER EXECUTOR CONFIGURATION
# ================================
EXECUTOR_TIMEOUT_MS=30000
EXECUTOR_MEMORY_LIMIT_MB=128
EXECUTOR_CPU_LIMIT=0.5
# ================================
# LOGGING CONFIGURATION
# ================================
LOG_LEVEL=info
# ================================
# API DOCUMENTATION
# ================================
SWAGGER_UI_ENABLED=true
# ================================
# DOCKER CONFIGURATION
# ================================
DOCKER_HOST=/var/run/docker.sock
NGINX_HTTP_PORT=80
NGINX_HTTPS_PORT=443
WORKER_REPLICAS=1