-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.production.example
More file actions
26 lines (21 loc) · 1.07 KB
/
Copy pathenv.production.example
File metadata and controls
26 lines (21 loc) · 1.07 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
# Copy to /etc/codestream/env on the EC2 instance and fill in values.
# chmod 600 /etc/codestream/env
# --- AWS (use an EC2 instance IAM role when possible; omit keys if role is attached) ---
AWS_REGION=us-east-1
# AWS_ACCESS_KEY_ID=
# AWS_SECRET_ACCESS_KEY=
SQS_SUBMISSION_QUEUE_URL=https://sqs.us-east-1.amazonaws.com/ACCOUNT_ID/code-submissions
SQS_RESULT_QUEUE_URL=https://sqs.us-east-1.amazonaws.com/ACCOUNT_ID/execution-results
# Do not set AWS_ENDPOINT_URL in production.
# --- Database (managed Postgres recommended) ---
DATABASE_URL=postgresql://USER:PASSWORD@HOST/DBNAME?sslmode=require
# Allow browser requests from your Vercel frontend (only needed if using
# NEXT_PUBLIC_API_BASE_URL for direct browser → API calls; optional with rewrites)
# CORS_ALLOWED_ORIGIN_PATTERNS=https://codestream.npsolver.io,https://*.vercel.app
# --- Optional API tuning ---
# GEMINI_API_KEY=
# GEMINI_MODEL=gemini-2.5-flash
# RESULT_RETENTION_DAYS=1
# --- Worker Docker execution (host Docker engine required) ---
EXECUTION_DOCKER_IMAGE=codestream-python-runner:latest
EXECUTION_DOCKER_BINARY=docker