后端初始化结构

This commit is contained in:
zly
2025-11-22 21:29:00 +08:00
parent 9fa602f21b
commit e68ad06829
26 changed files with 1350 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
# 项目信息
PROJECT_NAME=PBMDB API
VERSION=1.0.0
API_V1_STR=/api/v1
# 数据库配置
DATABASE_URL=postgresql://webws_admin:your_password_here@postgres:5432/webws_database
# 安全配置
SECRET_KEY=your-secret-key-here-change-in-production-use-at-least-32-chars
ACCESS_TOKEN_EXPIRE_MINUTES=10080
# CORS 配置
ALLOWED_ORIGINS=https://amiap.hzau.edu.cn,http://localhost:3000
# 文件上传配置
MAX_UPLOAD_SIZE=104857600
UPLOAD_DIR=/app/uploads
# 分页配置
DEFAULT_PAGE_SIZE=20
MAX_PAGE_SIZE=100