ai-code-battle/.env.example
jedarden 984ecc1da7 docs: Update deployment guide for K8s + B2 architecture
- Replace Worker API references with K8s matchmaker/worker architecture
- Update storage docs: R2 as warm cache, B2 as cold archive
- Add PostgreSQL database configuration
- Update health endpoint documentation for K8s probes
- Add Traefik ingress and custom domain setup instructions
- Remove obsolete D1 and Worker deployment sections

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-29 11:24:06 -04:00

70 lines
2.3 KiB
Text

# AI Code Battle Environment Configuration
# Copy this file to .env and fill in the values
# ===========================================
# API Server Configuration
# ===========================================
# The API endpoint (Traefik ingress)
ACB_API_ENDPOINT=https://api.aicodebattle.com
# ===========================================
# B2 Storage Configuration (S3-compatible)
# ===========================================
# B2 endpoint URL
ACB_B2_ENDPOINT=https://s3.us-east-005.backblazeb2.com
# B2 bucket name for replays and match data
ACB_B2_BUCKET=acb-data
# B2 access credentials
ACB_B2_ACCESS_KEY=your-b2-key-id
ACB_B2_SECRET_KEY=your-b2-application-key
# ===========================================
# Bot Secrets (for local development)
# ===========================================
# Each bot needs a secret for HMAC authentication
BOT_SECRET_RANDOM=dev-secret-random
BOT_SECRET_GATHERER=dev-secret-gatherer
BOT_SECRET_RUSHER=dev-secret-rusher
BOT_SECRET_GUARDIAN=dev-secret-guardian
BOT_SECRET_SWARM=dev-secret-swarm
BOT_SECRET_HUNTER=dev-secret-hunter
# ===========================================
# Go API Server Configuration
# ===========================================
# PostgreSQL connection URL
ACB_DATABASE_URL=postgres://localhost:5432/acb?sslmode=disable
# Valkey (Redis-compatible) address
ACB_VALKEY_ADDR=localhost:6379
# AES-256-GCM key for encrypting bot shared secrets at rest (32 bytes, hex-encoded)
ACB_ENCRYPTION_KEY=
# ===========================================
# Alerting Webhooks (optional)
# ===========================================
# Discord webhook URL for operational alerts (bot health, stale jobs, errors)
ACB_DISCORD_WEBHOOK=
# Slack incoming webhook URL for operational alerts
ACB_SLACK_WEBHOOK=
# ===========================================
# Worker Configuration
# ===========================================
# Optional: unique worker identifier (auto-generated if not set)
ACB_WORKER_ID=
# Enable verbose logging (true/false)
ACB_VERBOSE=false
# ===========================================
# Index Builder Configuration
# ===========================================
# Optional: command to deploy generated files
# For Cloudflare Pages: wrangler pages deploy /app/data --project-name=aicodebattle
# For B2: b2 sync /app/data b2://acb-data/data/
DEPLOY_COMMAND=