Add environment configuration and local development documentation

- Parameterize CORS_ORIGINS in docker-compose.swarm.yml
- Add .env.example with configuration options
- Create comprehensive LOCAL_DEVELOPMENT.md guide
- Update README.md with environment variable documentation
- Provide alternatives for local development without production domain

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
anthonyrawlins
2025-07-10 18:20:52 +10:00
parent daf0766e29
commit f3cbb5c6f7
50 changed files with 6339 additions and 528 deletions

31
backend/.env.production Normal file
View File

@@ -0,0 +1,31 @@
# Production Environment Configuration
DATABASE_URL=postgresql://hive:hive@postgres:5432/hive
REDIS_URL=redis://redis:6379/0
# Application Settings
LOG_LEVEL=info
CORS_ORIGINS=https://hive.deepblack.cloud,http://hive.deepblack.cloud
MAX_WORKERS=2
# Database Pool Settings
DB_POOL_SIZE=10
DB_MAX_OVERFLOW=20
DB_POOL_RECYCLE=3600
# HTTP Client Settings
HTTP_TIMEOUT=30
HTTP_POOL_CONNECTIONS=100
HTTP_POOL_MAXSIZE=100
# Health Check Settings
HEALTH_CHECK_TIMEOUT=10
STARTUP_TIMEOUT=60
# Security Settings
SECRET_KEY=your-secret-key-here
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
# Monitoring
PROMETHEUS_ENABLED=true
METRICS_PORT=9090