File size: 2,323 Bytes
79ef7e1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
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"