feat: 初始化考培练系统项目

- 从服务器拉取完整代码
- 按框架规范整理项目结构
- 配置 Drone CI 测试环境部署
- 包含后端(FastAPI)、前端(Vue3)、管理端

技术栈: Vue3 + TypeScript + FastAPI + MySQL
This commit is contained in:
111
2026-01-24 19:33:28 +08:00
commit 998211c483
1197 changed files with 228429 additions and 0 deletions

46
backend/mysql.cnf Normal file
View File

@@ -0,0 +1,46 @@
[mysqld]
# 字符集配置
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
# 时区配置 - 使用北京时间(东八区)
default-time-zone = '+08:00'
# 网络配置 - 允许远程连接
bind-address = 0.0.0.0
port = 3306
# 连接配置
max_connections = 200
max_user_connections = 180
# 缓冲池配置
innodb_buffer_pool_size = 256M
innodb_log_file_size = 64M
# 超时配置
wait_timeout = 600
interactive_timeout = 600
# 慢查询日志
slow_query_log = 1
slow_query_log_file = /var/log/mysql/slow.log
long_query_time = 2
# 错误日志
log_error = /var/log/mysql/error.log
# 二进制日志
log_bin = /var/log/mysql/mysql-bin.log
binlog_format = ROW
expire_logs_days = 7
# 安全配置
local_infile = 0
secure_file_priv = ""
[mysql]
default-character-set = utf8mb4
[client]
default-character-set = utf8mb4