# ── MongoDB ────────────────────────────────────────────────── # Used by docker-compose to create the root user MONGO_ROOT_USER=admin MONGO_ROOT_PASSWORD=changeme_use_a_strong_password DATABASE_NAME=fake_news_detector # Full connection string (auto-built in docker-compose; set manually for standalone) MONGODB_URL=mongodb+srv://ravishripad6:ravishripad6%402580@cluster0.kcyd6s1.mongodb.net/?appName=Cluster0 # ── JWT Auth ───────────────────────────────────────────────── # Generate with: python -c "import secrets; print(secrets.token_hex(32))" SECRET_KEY=6e7b97830f56d162d75deb39fb8c1f5d9bdaebedb8ee23042616cd09a6204d38 ALGORITHM=HS256 ACCESS_TOKEN_EXPIRE_MINUTES=1440 # ── AI Verification API Key (Gemini) ───────────────────────── # Get free key at: https://aistudio.google.com/app/apikey AI_API_KEY=AIzaSyCPAqy6YoO8ISFe-u0RcJ72eAjYUcGoN4o # ── Mistral OCR API Key (for image text extraction) ────────── # Get free key at: https://console.mistral.ai/ MISTRAL_API_KEY=wvJaTtuJDULRTnBGtSd3MxsQOuNN3e8Nstral # ── NewsAPI (optional – for news validation) ───────────────── # Get free key at: https://newsapi.org/register NEWS_API_KEY=6281340be6194ac4abc800a4d1ddfdba # ── SerpAPI (optional – for Google search verification) ─────── # Get free key at: https://serpapi.com/users/sign_up SERP_API_KEY=6ac3b5f8a85d47a02a6f106d25e203be2091572f336f73f0bfd8556e9e3f0a7d # ── API Configuration ───────────────────────────────────────── API_HOST=0.0.0.0 API_PORT=8000 # ── Model Configuration ─────────────────────────────────────── MODEL_PATH=./enhanced_bert_liar_model WELFAKE_MODEL_PATH=./enhanced_bert_welfake_model MAX_LENGTH=512 # ── Enable/Disable AI Cross-Check ──────────────────────────── ENABLE_AI_CHECK=true VITE_API_URL=