38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
# Application Settings
|
|
APP_NAME="AI Detection API"
|
|
APP_VERSION="1.0.0"
|
|
DEBUG=True
|
|
PORT=8000
|
|
HOST=0.0.0.0
|
|
|
|
# Database Settings
|
|
# For Docker Compose, use 'postgres' as the host. For local, use 'localhost'.
|
|
DATABASE_URL="postgresql://postgres:postgres@postgres:5432/test_project_db"
|
|
POSTGRES_USER=postgres
|
|
POSTGRES_PASSWORD=postgres
|
|
POSTGRES_DB=test_project_db
|
|
POSTGRES_PORT=5432
|
|
|
|
# Redis Settings
|
|
# For Docker Compose, use 'redis' as the host. For local, use 'localhost'.
|
|
REDIS_HOST=redis
|
|
REDIS_PORT=6379
|
|
|
|
# Security Settings
|
|
# Generate a secure key for production
|
|
JWT_SECRET="your-super-secret-jwt-key-change-me"
|
|
JWT_REFRESH_SECRET="your-super-secret-refresh-key-change-me"
|
|
JWT_ISSUER="ai-detection-app"
|
|
JWT_AUDIENCE="ai-detection-users"
|
|
JWT_ACCESS_TOKEN_EXPIRE_MINUTES=30
|
|
JWT_REFRESH_TOKEN_EXPIRE_DAYS=7
|
|
|
|
# RAG / AI Configuration
|
|
OPENAI_API_KEY="sk-..."
|
|
ANTHROPIC_API_KEY="xpk-..."
|
|
EMBEDDING_PROVIDER="huggingface" # "openai" or "huggingface"
|
|
LLM_PROVIDER="openai" # "openai" or "anthropic"
|
|
VECTOR_DB_DIR="./chroma_db"
|
|
RAG_CHUNK_SIZE=1000
|
|
RAG_CHUNK_OVERLAP=100
|