配置 API Key 环境变量,完成 FastAPI 基础配置
This commit is contained in:
15
backend/.env.example
Normal file
15
backend/.env.example
Normal 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
|
||||
Reference in New Issue
Block a user