配置 API Key 环境变量,完成 FastAPI 基础配置

This commit is contained in:
2026-02-24 21:07:05 +08:00
parent 9de6c935fa
commit 5241f68190
8 changed files with 230 additions and 0 deletions

15
backend/.env.example Normal file
View File

@@ -0,0 +1,15 @@
# 基础配置
APP_NAME="FilesReadSystem"
DEBUG=true
# 数据库
MONGODB_URL="mongodb://username:password@host:port"
REDIS_URL="redis://localhost:6379/0"
# 大模型 API
LLM_API_KEY=""
LLM_BASE_URL=""
# 文件存储配置
UPLOAD_DIR="./data/uploads"
MAX_UPLOAD_SIZE=104857600 # 100MB