verifile-x-api / .env.example
abinazebinoy's picture
docs(config): clarify which startup path loads which .env.example
fcd6b46
Raw
History Blame Contribute Delete
1.46 kB
# VeriFile-X Configuration Template (repo-root)
#
# Loaded when the server is started from the REPO ROOT, per README.md's
# quickstart (`uvicorn backend.main:app` run from the top-level directory) --
# pydantic-settings' env_file=".env" (backend/core/config.py) resolves
# relative to the process's working directory at startup, not to config.py's
# own location. If you instead follow SETUP_GUIDE.md's local-dev instructions
# (which `cd backend` before running `uvicorn main:app`), copy
# backend/.env.example instead -- these are two genuinely different files
# for two genuinely different startup paths, not accidental duplicates.
#
# For a production deployment, start from .env.production.example instead
# (also repo-root -- same loading rule applies).
# Server Configuration
DEBUG=False
PORT=8000
# CORS -- comma-separated origins (NOT a JSON array; CORS_ORIGINS is a
# plain str parsed via .split(",") in backend/core/config.py -- a value
# like ["http://localhost:3000"] would be treated as one literal origin
# string including the brackets/quotes, which will never match a real
# browser Origin header).
CORS_ORIGINS=http://localhost:3000,https://verifile-x.onrender.com
# Rate Limiting
RATE_LIMIT_PER_MINUTE=10
# File Upload Limits
MAX_FILE_SIZE_MB=50
MAX_ANALYSIS_SIZE_MB=10
# Cache Configuration
CACHE_TTL_MINUTES=60
MAX_CACHE_SIZE=500
# Logging
LOG_LEVEL=INFO
# API Configuration
API_V1_PREFIX=/api/v1
PROJECT_NAME=VeriFile-X
VERSION=8.5.0