services: - type: web name: lojiz-auth-api runtime: python pythonVersion: 3.11 # ✅ Build & Start Commands buildCommand: pip install -r requirements.txt startCommand: uvicorn app.main:app --host 0.0.0.0 --port $PORT # ✅ CRITICAL: Health check (Render uses this to verify app is running) healthCheckPath: /health # ✅ Prestart check to catch errors early predeployCommand: python -c "from app.main import app; print('✅ App imports successfully')" # ✅ Environment Variables envVars: # Python & Environment - key: PYTHON_VERSION value: "3.11" - key: ENVIRONMENT value: production - key: DEBUG value: "False" # Authentication - key: JWT_SECRET sync: false # Set in Render dashboard # Database - key: MONGODB_URL sync: false # Set in Render dashboard # Email Service - key: RESEND_API_KEY sync: false # Set in Render dashboard - key: RESEND_FROM_EMAIL value: noreply@lojiz.com # OTP Settings - key: OTP_EXPIRY_MINUTES value: "15" - key: OTP_MAX_ATTEMPTS value: "5" # CORS - key: CORS_ORIGINS value: "http://localhost:3000,https://lojiz.com,https://www.lojiz.com" # ✅ NEW: AI & ML Settings - key: DEEPSEEK_API_KEY sync: false # Set in Render dashboard - key: DEEPSEEK_BASE_URL value: "https://api.deepseek.com/v1" - key: OPENAI_API_KEY sync: false # Set in Render dashboard # ✅ NEW: Cache & Vector Store - key: REDIS_URL sync: false # Set in Render dashboard - key: QDRANT_URL sync: false # Set in Render dashboard - key: QDRANT_API_KEY sync: false # Set in Render dashboard (if needed) # ✅ NEW: Cloudflare Images (for property uploads) - key: CF_ACCOUNT_ID sync: false # Set in Render dashboard - key: CF_API_TOKEN sync: false # Set in Render dashboard # ✅ NEW: Monitoring (optional) - key: SENTRY_DSN sync: false # Set in Render dashboard (optional) # ✅ NEW: Port (explicit for clarity) - key: PORT value: "8000"