-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
25 lines (23 loc) · 890 Bytes
/
.env.example
File metadata and controls
25 lines (23 loc) · 890 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
# Database Configuration
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=code_executor
POSTGRES_URL=postgresql://postgres:postgres@db:5432/code_executor
# Database Connection URL
# Format: postgresql://user:password@host:port/dbname
# DATABASE_URL=postgresql://postgres:postgres@db:5432/code_executor
DATABASE_URL=postgresql://postgres:postgres@db:5432/code_executor
DATABASE_USER=postgres
DATABASE_PASSWORD=postgres
DATABASE_DB=postgres
# Execution Limits
MAX_MEMORY_MB=512
MAX_FILE_SIZE_MB=1
MAX_OPEN_FILES=64
MAX_RUN_TIME=5
# Cheat Mode
# CHEAT_CODE must be the SHA-256 hex digest of your secret passphrase.
# The raw secret is NEVER stored here — only its hash.
# To generate: python3 -c "import hashlib; print(hashlib.sha256(b'YOUR_SECRET').hexdigest())"
# State is in-memory only and resets on server restart (safe by design).
CHEAT_CODE=<sha256-hex-of-your-secret>