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:
23
.env.example
Normal file
23
.env.example
Normal file
@@ -0,0 +1,23 @@
|
||||
# Hive Environment Configuration
|
||||
# Copy this file to .env and customize for your environment
|
||||
|
||||
# CORS Configuration
|
||||
# For development: CORS_ORIGINS=http://localhost:3000,http://localhost:3001
|
||||
# For production: CORS_ORIGINS=https://hive.home.deepblack.cloud
|
||||
CORS_ORIGINS=https://hive.home.deepblack.cloud
|
||||
|
||||
# Database Configuration
|
||||
DATABASE_URL=postgresql://hive:hivepass@postgres:5432/hive
|
||||
|
||||
# Redis Configuration
|
||||
REDIS_URL=redis://redis:6379
|
||||
|
||||
# Environment
|
||||
ENVIRONMENT=production
|
||||
|
||||
# Logging
|
||||
LOG_LEVEL=info
|
||||
|
||||
# Traefik Configuration (for local development)
|
||||
# Set this if you want to use a different domain for local development
|
||||
# TRAEFIK_HOST=hive.local.dev
|
||||
Reference in New Issue
Block a user