147 lines
4.2 KiB
Bash
147 lines
4.2 KiB
Bash
# ============================================================================
|
|
# Claude Code Stack Environment Configuration
|
|
# ============================================================================
|
|
|
|
# ANTHROPIC API CONFIGURATION (REQUIRED)
|
|
# Get your API key from: https://console.anthropic.com/
|
|
ANTHROPIC_API_KEY=your_api_key_here
|
|
|
|
# Optional: Use a custom API endpoint (leave blank for default)
|
|
# ANTHROPIC_BASE_URL=https://api.anthropic.com
|
|
|
|
# CLAUDE CODE CONFIGURATION
|
|
# Model to use (options: claude-opus-4-1, claude-sonnet-4-20250514, claude-haiku-4)
|
|
CLAUDE_MODEL=claude-opus-4-1
|
|
|
|
# Enable Claude Code daemon in background
|
|
RUN_CLAUDE_CODE=true
|
|
|
|
# WORKSPACE CONFIGURATION
|
|
WORKSPACE_DIR=/workspace
|
|
|
|
# CLAUDE CONFIGURATION DIRECTORY
|
|
CLAUDE_CONFIG_DIR=/root/.claude
|
|
|
|
# ============================================================================
|
|
# DATABASE CONFIGURATION (Optional - for persistence)
|
|
# ============================================================================
|
|
|
|
# PostgreSQL
|
|
POSTGRES_USER=claude
|
|
POSTGRES_PASSWORD=changeMe123!
|
|
POSTGRES_DB=claude_agents
|
|
POSTGRES_HOST=postgres
|
|
POSTGRES_PORT=5432
|
|
|
|
# Redis
|
|
REDIS_HOST=redis
|
|
REDIS_PORT=6379
|
|
|
|
# ============================================================================
|
|
# APPLICATION CONFIGURATION
|
|
# ============================================================================
|
|
|
|
# Node environment
|
|
NODE_ENV=production
|
|
|
|
# Frontend configuration
|
|
NUXT_PUBLIC_API_URL=http://localhost:3000/api
|
|
NUXT_PUBLIC_WS_URL=ws://localhost:3000/ws
|
|
|
|
# Backend API configuration
|
|
API_PORT=5000
|
|
API_HOST=0.0.0.0
|
|
|
|
# ============================================================================
|
|
# LOGGING CONFIGURATION
|
|
# ============================================================================
|
|
|
|
LOG_LEVEL=info
|
|
DEBUG=false
|
|
|
|
# ============================================================================
|
|
# NGINX CONFIGURATION (if using Nginx reverse proxy)
|
|
# ============================================================================
|
|
|
|
NGINX_ENABLE=true
|
|
NGINX_PROXY_PASS_UI=http://agents-ui:3000
|
|
NGINX_PROXY_PASS_API=http://claude-code-backend:5000
|
|
|
|
# SSL/TLS Configuration (optional)
|
|
# NGINX_SSL_ENABLE=false
|
|
# NGINX_SSL_CERT_PATH=/etc/nginx/certs/cert.pem
|
|
# NGINX_SSL_KEY_PATH=/etc/nginx/certs/key.pem
|
|
|
|
# ============================================================================
|
|
# SECURITY CONFIGURATION
|
|
# ============================================================================
|
|
|
|
# Enable CORS for specific origins
|
|
CORS_ORIGIN=*
|
|
|
|
# API rate limiting
|
|
RATE_LIMIT_ENABLED=true
|
|
RATE_LIMIT_MAX_REQUESTS=100
|
|
RATE_LIMIT_WINDOW_MS=60000
|
|
|
|
# Session configuration
|
|
SESSION_SECRET=your_random_session_secret_here_change_this
|
|
|
|
# ============================================================================
|
|
# STORAGE CONFIGURATION
|
|
# ============================================================================
|
|
|
|
# Local storage paths (inside containers)
|
|
STORAGE_PATH=/workspace
|
|
CACHE_PATH=/tmp/claude-cache
|
|
|
|
# Optional: S3/MinIO configuration for distributed storage
|
|
# S3_ENABLED=false
|
|
# S3_ENDPOINT=https://s3.amazonaws.com
|
|
# S3_BUCKET=claude-agents
|
|
# S3_ACCESS_KEY=
|
|
# S3_SECRET_KEY=
|
|
# S3_REGION=us-east-1
|
|
|
|
# ============================================================================
|
|
# AGENT CONFIGURATION
|
|
# ============================================================================
|
|
|
|
# Maximum concurrent agents
|
|
MAX_CONCURRENT_AGENTS=5
|
|
|
|
# Agent timeout (seconds)
|
|
AGENT_TIMEOUT=3600
|
|
|
|
# Allow agents to execute shell commands
|
|
ALLOW_SHELL_EXECUTION=true
|
|
|
|
# Allowed directories for agent access (comma-separated)
|
|
ALLOWED_DIRECTORIES=/workspace,/tmp
|
|
|
|
# ============================================================================
|
|
# MONITORING & OBSERVABILITY
|
|
# ============================================================================
|
|
|
|
# Enable health checks
|
|
HEALTH_CHECK_ENABLED=true
|
|
|
|
# Optional: Sentry error tracking
|
|
# SENTRY_DSN=
|
|
|
|
# Optional: Prometheus metrics
|
|
# PROMETHEUS_ENABLED=false
|
|
# PROMETHEUS_PORT=9090
|
|
|
|
# ============================================================================
|
|
# DEVELOPMENT CONFIGURATION (not recommended for production)
|
|
# ============================================================================
|
|
|
|
# Enable hot reload
|
|
HOT_RELOAD=false
|
|
|
|
# Enable debug mode
|
|
DEBUG_MODE=false
|
|
|
|
# Verbose logging
|
|
VERBOSE=false
|