后端初始化结构
This commit is contained in:
22
web/ws/backend/.env.example
Normal file
22
web/ws/backend/.env.example
Normal 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
|
||||
Reference in New Issue
Block a user