Spaces:
Sleeping
Sleeping
| # ============================================================================= | |
| # EVG ULTIMATE TEAM - Backend Environment Configuration | |
| # ============================================================================= | |
| # Copy this file to .env and update with your actual values | |
| # NEVER commit .env to version control | |
| # ----------------------------------------------------------------------------- | |
| # Database Configuration | |
| # ----------------------------------------------------------------------------- | |
| # SQLite for development (file-based, no server required) | |
| # For production, replace with PostgreSQL: | |
| # DATABASE_URL=postgresql://user:password@localhost:5432/evg_ultimate_team | |
| DATABASE_URL=sqlite:///./evg_ultimate_team.db | |
| # ----------------------------------------------------------------------------- | |
| # Security Configuration | |
| # ----------------------------------------------------------------------------- | |
| # Secret key for session management and token generation | |
| # Generate a new one with: python -c "import secrets; print(secrets.token_urlsafe(32))" | |
| SECRET_KEY=change-this-to-a-random-secret-key-in-production | |
| # Admin credentials for Clément (organizer) | |
| ADMIN_USERNAME=clement | |
| ADMIN_PASSWORD=evg2026_admin | |
| # ----------------------------------------------------------------------------- | |
| # CORS Configuration | |
| # ----------------------------------------------------------------------------- | |
| # Allowed origins for CORS (comma-separated for multiple origins) | |
| # Development: http://localhost:5173 | |
| # Production: https://your-frontend-domain.com | |
| CORS_ORIGINS=http://localhost:5173,http://localhost:3000 | |
| # ----------------------------------------------------------------------------- | |
| # Logging Configuration | |
| # ----------------------------------------------------------------------------- | |
| # Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL | |
| LOG_LEVEL=INFO | |
| # Log file path (optional, logs to console if not specified) | |
| LOG_FILE=logs/evg_ultimate_team.log | |
| # ----------------------------------------------------------------------------- | |
| # Application Configuration | |
| # ----------------------------------------------------------------------------- | |
| # Application environment: development, staging, production | |
| ENVIRONMENT=development | |
| # API host and port | |
| API_HOST=0.0.0.0 | |
| API_PORT=8000 | |
| # Enable debug mode (auto-reload on code changes) | |
| DEBUG=true | |