···1010# psql -U postgres -c "CREATE DATABASE atproto;"
1111DATABASE_URL=postgresql://postgres:password@localhost:5432/atproto
12121313+# Redis connection string for caching and metrics
1414+# Format: redis://host:port
1515+# Default: redis://localhost:6379
1616+REDIS_URL=redis://localhost:6379
1717+1318# ============================================
1419# REQUIRED: Security
1520# ============================================
···2429# Default: wss://bsky.network
2530RELAY_URL=wss://bsky.network
26312727-# Enable historical backfill (DANGEROUS - will consume massive resources)
2828-# WARNING: Do NOT enable this in production without proper resource planning
2929-# Backfill will attempt to download and process ALL historical data from the network
3030-# This can take days/weeks and requires significant disk space and memory
3131-# Default: false
3232-ENABLE_BACKFILL=false
3232+# Historical backfill configuration (in days)
3333+# 0 = disabled (no backfill)
3434+# >0 = backfill X days of historical data
3535+# WARNING: Resource-intensive! Each day of backfill can take hours and significant disk space
3636+# Recommended: Start with 1-7 days for testing
3737+# Default: 0 (disabled)
3838+BACKFILL_DAYS=0
3939+4040+# Data retention configuration (in days)
4141+# 0 = keep all data forever
4242+# >0 = automatically prune posts/likes/reposts older than X days (runs daily)
4343+# Note: User profiles and follows are never pruned (preserves social graph)
4444+# Recommended: 30-90 days for production to manage disk usage
4545+# Default: 0 (keep forever)
4646+DATA_RETENTION_DAYS=0
33473448# ============================================
3549# OPTIONAL: AppView Identity
···6276# Node environment
6377# Options: development, production
6478NODE_ENV=production
7979+8080+# Database connection pool size
8181+# Higher values support more concurrent connections
8282+# Default: 32 (docker-compose uses 100 for production)
8383+DB_POOL_SIZE=32
8484+8585+# Maximum concurrent event processing operations
8686+# Balances throughput vs memory usage
8787+# Default: 80
8888+MAX_CONCURRENT_OPS=80
8989+9090+# ============================================
9191+# OPTIONAL: Dashboard Authentication
9292+# ============================================
9393+# Password for dashboard access (leave blank for no authentication)
9494+# Recommended: Set a strong password in production
9595+DASHBOARD_PASSWORD=