Files
student/student_management_system_complete/student_management_system/.env.example
T

22 lines
506 B
Bash

# 复制本文件为 .env 后按本机情况修改,.env 不要提交到 Git
APP_NAME=学生管理系统
DEBUG=true
HOST=127.0.0.1
PORT=8004
API_PREFIX=/api/v1
# 允许跨域的前端地址,逗号分隔
CORS_ORIGINS=http://localhost:5500,http://127.0.0.1:5500,http://localhost:8000,http://127.0.0.1:8000
# 数据库
DB_HOST=127.0.0.1
DB_PORT=3306
DB_USER=root
DB_PASSWORD=123456
DB_NAME=student_management_system
DB_CHARSET=utf8mb4
DB_ECHO=false
DB_POOL_SIZE=5
DB_MAX_OVERFLOW=10
DB_POOL_RECYCLE=3600