File size: 1,261 Bytes
2bdf377
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# render.yaml – Render.com deployment config
# This file tells Render how to build and run the FastAPI backend.
# Docs: https://render.com/docs/blueprint-spec

services:
  - type: web
    name: fakenews-backend
    runtime: docker
    dockerfilePath: ./Dockerfile
    # Render's free plan; upgrade to "starter" ($7/mo) if BERT needs more RAM
    plan: free
    healthCheckPath: /health
    envVars:
      # Set these in the Render dashboard after first deploy
      - key: MONGODB_URL
        sync: false                 # marks it as a secret – set manually in dashboard
      - key: DATABASE_NAME
        value: fake_news_detector
      - key: SECRET_KEY
        generateValue: true         # Render auto-generates a secure random value
      - key: ALGORITHM
        value: HS256
      - key: ACCESS_TOKEN_EXPIRE_MINUTES
        value: "30"
      - key: AI_API_KEY
        sync: false
      - key: MISTRAL_API_KEY
        sync: false
      - key: NEWS_API_KEY
        sync: false
      - key: SERP_API_KEY
        sync: false
      - key: ENABLE_AI_CHECK
        value: "true"
      # Set this AFTER you know your Vercel frontend URL, e.g. https://your-app.vercel.app
      - key: ALLOWED_ORIGINS
        sync: false