
- Introduced `docker-compose.prod.yml` to define services for production deployment, including PostgreSQL, FastAPI backend, frontend, and Redis. - Created `env.production.template` to outline necessary environment variables for production, ensuring sensitive data is not committed. - Added `PRODUCTION.md` as a deployment guide detailing the setup process using Docker Compose and Gitea Actions for CI/CD. - Implemented Gitea workflows for build, test, and deployment processes to streamline production updates. - Updated backend and frontend Dockerfiles for optimized production builds and configurations. - Enhanced application settings to support environment-specific configurations, including CORS and health checks.
46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
# Production Environment Variables Template
|
|
# Copy this file to .env.production and fill in the actual values
|
|
# NEVER commit the actual .env.production file to version control
|
|
|
|
# Database Configuration
|
|
POSTGRES_USER=mitlist_user
|
|
POSTGRES_PASSWORD=your_secure_database_password_here
|
|
POSTGRES_DB=mitlist_prod
|
|
DATABASE_URL=postgresql+asyncpg://mitlist_user:your_secure_database_password_here@db:5432/mitlist_prod
|
|
|
|
# Security Keys (Generate with: openssl rand -hex 32)
|
|
SECRET_KEY=your_secret_key_here_minimum_32_characters_long
|
|
SESSION_SECRET_KEY=your_session_secret_key_here_minimum_32_characters_long
|
|
|
|
# API Keys
|
|
GEMINI_API_KEY=your_gemini_api_key_here
|
|
|
|
# Redis Configuration
|
|
REDIS_PASSWORD=your_redis_password_here
|
|
|
|
# Sentry Configuration (Optional but recommended)
|
|
SENTRY_DSN=your_sentry_dsn_here
|
|
|
|
# CORS Configuration
|
|
CORS_ORIGINS=https://yourdomain.com,https://www.yourdomain.com
|
|
FRONTEND_URL=https://yourdomain.com
|
|
|
|
# Frontend Build Variables
|
|
VITE_API_URL=https://yourdomain.com/api
|
|
VITE_SENTRY_DSN=your_frontend_sentry_dsn_here
|
|
VITE_ROUTER_MODE=history
|
|
|
|
# OAuth Configuration (if using)
|
|
GOOGLE_CLIENT_ID=your_google_client_id
|
|
GOOGLE_CLIENT_SECRET=your_google_client_secret
|
|
GOOGLE_REDIRECT_URI=https://yourdomain.com/auth/google/callback
|
|
|
|
APPLE_CLIENT_ID=your_apple_client_id
|
|
APPLE_TEAM_ID=your_apple_team_id
|
|
APPLE_KEY_ID=your_apple_key_id
|
|
APPLE_PRIVATE_KEY=your_apple_private_key
|
|
APPLE_REDIRECT_URI=https://yourdomain.com/auth/apple/callback
|
|
|
|
# Production Settings
|
|
ENVIRONMENT=production
|
|
LOG_LEVEL=INFO |