feat: Add environment configuration files and update settings for production and development
This commit is contained in:
50
.env.production.template
Normal file
50
.env.production.template
Normal file
@@ -0,0 +1,50 @@
|
||||
# Production Environment Configuration
|
||||
# Copy this file to .env and configure for your production environment
|
||||
|
||||
# Application Configuration
|
||||
HOST=0.0.0.0
|
||||
PORT=8000
|
||||
RELOAD=false
|
||||
|
||||
# Production URLs (configure for your domain)
|
||||
FRONTEND_URL=https://yourdomain.com
|
||||
BACKEND_URL=https://yourdomain.com
|
||||
CORS_ORIGINS=["https://yourdomain.com"]
|
||||
|
||||
# Database Configuration (consider using PostgreSQL in production)
|
||||
DATABASE_URL=sqlite+aiosqlite:///data/soundboard.db
|
||||
DATABASE_ECHO=false
|
||||
|
||||
# Logging Configuration
|
||||
LOG_LEVEL=info
|
||||
LOG_FILE=logs/app.log
|
||||
LOG_MAX_SIZE=10485760
|
||||
LOG_BACKUP_COUNT=5
|
||||
|
||||
# JWT Configuration (IMPORTANT: Generate secure keys for production)
|
||||
JWT_SECRET_KEY=your-super-secure-secret-key-change-this-in-production
|
||||
JWT_ACCESS_TOKEN_EXPIRE_MINUTES=15
|
||||
JWT_REFRESH_TOKEN_EXPIRE_DAYS=7
|
||||
|
||||
# Cookie Configuration (Production settings)
|
||||
COOKIE_SECURE=true
|
||||
COOKIE_SAMESITE=lax
|
||||
COOKIE_DOMAIN= # Leave empty for same-origin cookies in production with reverse proxy
|
||||
|
||||
# OAuth2 Configuration (Configure with your OAuth providers)
|
||||
GOOGLE_CLIENT_ID=your-google-client-id
|
||||
GOOGLE_CLIENT_SECRET=your-google-client-secret
|
||||
GITHUB_CLIENT_ID=your-github-client-id
|
||||
GITHUB_CLIENT_SECRET=your-github-client-secret
|
||||
|
||||
# Audio Normalization Configuration
|
||||
NORMALIZED_AUDIO_FORMAT=mp3
|
||||
NORMALIZED_AUDIO_BITRATE=256k
|
||||
NORMALIZED_AUDIO_PASSES=2
|
||||
|
||||
# Audio Extraction Configuration
|
||||
EXTRACTION_AUDIO_FORMAT=mp3
|
||||
EXTRACTION_AUDIO_BITRATE=256k
|
||||
EXTRACTION_TEMP_DIR=sounds/temp
|
||||
EXTRACTION_THUMBNAILS_DIR=sounds/originals/extracted/thumbnails
|
||||
EXTRACTION_MAX_CONCURRENT=2
|
||||
Reference in New Issue
Block a user