golfgame/server/.env.example
Aaron D. Lee bea85e6b28 Huge v2 uplift, now deployable with real user management and tooling!
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 11:32:15 -05:00

56 lines
1.4 KiB
Plaintext

# Golf Game Server Configuration
# Copy this file to .env and adjust values as needed
# Server settings
HOST=0.0.0.0
PORT=8000
DEBUG=true
LOG_LEVEL=DEBUG
# Environment (development, staging, production)
# Affects logging format, security headers (HSTS), etc.
ENVIRONMENT=development
# Legacy SQLite database (for analytics/auth)
DATABASE_URL=sqlite:///games.db
# V2: PostgreSQL for event store
# Used with: docker-compose -f docker-compose.dev.yml up -d
POSTGRES_URL=postgresql://golf:devpassword@localhost:5432/golf
# V2: Redis for live state cache and pub/sub
# Used with: docker-compose -f docker-compose.dev.yml up -d
REDIS_URL=redis://localhost:6379
# Room settings
MAX_PLAYERS_PER_ROOM=6
ROOM_TIMEOUT_MINUTES=60
# Security (optional)
# SECRET_KEY=your-secret-key-here
# INVITE_ONLY=false
# ADMIN_EMAILS=admin@example.com,another@example.com
# V2: Email configuration (Resend)
# Get API key from https://resend.com
# RESEND_API_KEY=re_xxxxxxxx
# EMAIL_FROM=Golf Game <noreply@yourdomain.com>
# V2: Base URL for email links
# BASE_URL=http://localhost:8000
# V2: Session settings
# SESSION_EXPIRY_HOURS=168
# V2: Email verification
# Set to true to require email verification before login
# REQUIRE_EMAIL_VERIFICATION=false
# V2: Rate limiting
# Set to false to disable API rate limiting
# RATE_LIMIT_ENABLED=true
# V2: Error tracking (Sentry)
# Get DSN from https://sentry.io
# SENTRY_DSN=https://xxx@xxx.ingest.sentry.io/xxx