- 密码哈希从 MD5+SHA1 升级为 bcrypt - 删除 super_admins/users 表中的 salt 字段 - 删除旧版升级文件(upgrade.php, check_upgrade, execute_upgrade, sql/upgrades/) - 删除 PASSWORD_SALT 配置项 - 清理所有'兼容 Python 版'注释 - 新项目独立,无历史包袱
61 lines
1.4 KiB
Plaintext
61 lines
1.4 KiB
Plaintext
# ===========================================
|
|
# 多班级版班级管理系统 - Go 后端配置
|
|
# ===========================================
|
|
|
|
# 应用名称
|
|
APP_NAME=多班级版班级管理系统
|
|
# 运行环境: production / development
|
|
APP_ENV=production
|
|
# 调试模式
|
|
DEBUG=false
|
|
# 服务端口
|
|
APP_PORT=56789
|
|
|
|
# ===========================================
|
|
# MySQL 数据库配置
|
|
# ===========================================
|
|
|
|
DB_HOST=localhost
|
|
DB_PORT=3306
|
|
DB_USER=class_admin
|
|
DB_PASSWORD=YourPassword
|
|
DB_NAME=classmanagerdb
|
|
DB_MAX_OPEN_CONNS=25
|
|
DB_MAX_IDLE_CONNS=10
|
|
DB_CONN_MAX_LIFETIME=300
|
|
|
|
# ===========================================
|
|
# Redis 缓存配置
|
|
# ===========================================
|
|
|
|
REDIS_HOST=localhost
|
|
REDIS_PORT=6379
|
|
REDIS_PASSWORD=
|
|
REDIS_DB=0
|
|
REDIS_MAX_CONNECTIONS=500
|
|
|
|
# ===========================================
|
|
# JWT 认证配置
|
|
# ===========================================
|
|
|
|
JWT_SECRET_KEY=your-32-char-secret-key
|
|
JWT_ALGORITHM=HS256
|
|
JWT_EXPIRE_MINUTES=60
|
|
JWT_IDLE_TIMEOUT_MINUTES=10
|
|
|
|
# ===========================================
|
|
# 系统管理员配置
|
|
# ===========================================
|
|
|
|
SUPER_ADMIN_LOGIN_PATH=/super-admin
|
|
SUPER_ADMIN_DEFAULT_USERNAME=admin
|
|
# ⚠️ 部署时必须修改为强密码,否则存在安全风险
|
|
SUPER_ADMIN_DEFAULT_PASSWORD=Admin123
|
|
|
|
# ===========================================
|
|
# 日志配置
|
|
# ===========================================
|
|
|
|
LOG_LEVEL=info
|
|
LOG_FILE=logs/app.log
|