Spaces:
Running
Running
| 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" |