# 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