# ========================================== # VIP Coordinator - Production Environment # ========================================== # Copy this file to .env.production and fill in your values # DO NOT commit .env.production to version control # ========================================== # Database Configuration # ========================================== POSTGRES_DB=vip_coordinator POSTGRES_USER=vip_user POSTGRES_PASSWORD=CHANGE_ME_TO_STRONG_PASSWORD # ========================================== # Auth0 Configuration # ========================================== # Get these from your Auth0 dashboard: # 1. Go to https://manage.auth0.com/ # 2. Create or select your Application (Single Page Application) # 3. Create or select your API # 4. Copy the values below # Your Auth0 tenant domain (e.g., your-tenant.us.auth0.com) AUTH0_DOMAIN=your-tenant.us.auth0.com # Your Auth0 API audience/identifier (e.g., https://vip-coordinator-api) AUTH0_AUDIENCE=https://your-api-identifier # Your Auth0 issuer URL (usually https://your-tenant.us.auth0.com/) AUTH0_ISSUER=https://your-tenant.us.auth0.com/ # Your Auth0 SPA Client ID (this is public, used in frontend) AUTH0_CLIENT_ID=your-auth0-client-id # ========================================== # Frontend Configuration # ========================================== # Port to expose the frontend on (default: 80) FRONTEND_PORT=80 # API URL for frontend to use (default: http://localhost/api/v1) # For production, this should be your domain's API endpoint # Note: In containerized setup, /api is proxied by nginx to backend VITE_API_URL=http://localhost/api/v1 # ========================================== # Optional: External APIs # ========================================== # AviationStack API key for flight tracking (optional) # Get one at: https://aviationstack.com/ AVIATIONSTACK_API_KEY= # ========================================== # Optional: Database Seeding # ========================================== # Set to 'true' to seed database with sample data on first run # WARNING: Only use in development/testing environments RUN_SEED=false # ========================================== # Production Deployment Notes # ========================================== # 1. Configure Auth0: # - Add callback URLs: https://your-domain.com/callback # - Add allowed web origins: https://your-domain.com # - Add allowed logout URLs: https://your-domain.com # # 2. For HTTPS/SSL: # - Use a reverse proxy like Caddy, Traefik, or nginx-proxy # - Or configure cloud provider's load balancer with SSL certificate # # 3. First deployment: # docker-compose -f docker-compose.prod.yml up -d # # 4. To update: # docker-compose -f docker-compose.prod.yml down # docker-compose -f docker-compose.prod.yml build # docker-compose -f docker-compose.prod.yml up -d # # 5. View logs: # docker-compose -f docker-compose.prod.yml logs -f # # 6. Database migrations run automatically on backend startup