Huge v2 uplift, now deployable with real user management and tooling!
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
55
server/.env.example
Normal file
55
server/.env.example
Normal file
@@ -0,0 +1,55 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user