feat: 增加通知系统、RabbitMQ集成及Docker一键部署脚本
All checks were successful
test/timeline-server/pipeline/head This commit looks good
All checks were successful
test/timeline-server/pipeline/head This commit looks good
1. 新增通知中心功能,支持好友请求、评论、点赞等多种通知类型的持久化与推送 2. 集成 RabbitMQ 用于异步处理动态日志,解耦动态服务与日志记录逻辑 3. 提供完整的 Docker Compose 部署方案及一键启动/停止脚本(Shell/Bat) 4. 优化文件服务,增加图片上传时的自动压缩处理以节省存储空间 5. 增强动态服务,支持通过 shareId 公开访问动态项及关键词搜索功能 6. 完善代码健壮性,在关键业务 Service 层增加 @Transactional 事务控制
This commit is contained in:
58
deploy/conf/my-container.cnf
Normal file
58
deploy/conf/my-container.cnf
Normal file
@@ -0,0 +1,58 @@
|
||||
[mysqld]
|
||||
# Basic settings for containerized environment
|
||||
port = 3306
|
||||
bind-address = 0.0.0.0
|
||||
server-id = 1
|
||||
|
||||
# Data directory
|
||||
datadir = /var/lib/mysql
|
||||
|
||||
# Character set
|
||||
character-set-server = utf8mb4
|
||||
collation-server = utf8mb4_unicode_ci
|
||||
|
||||
# Log settings
|
||||
log-error = /var/log/mysql/error.log
|
||||
slow-query-log = 1
|
||||
slow-query-log-file = /var/log/mysql/slow.log
|
||||
long_query_time = 2
|
||||
|
||||
# Connection settings
|
||||
max_connections = 200
|
||||
max_connect_errors = 6000
|
||||
open_files_limit = 65535
|
||||
|
||||
# InnoDB settings optimized for container
|
||||
default-storage-engine = innodb
|
||||
innodb_buffer_pool_size = 256M
|
||||
innodb_log_file_size = 64M
|
||||
innodb_log_buffer_size = 16M
|
||||
innodb_flush_log_at_trx_commit = 2
|
||||
innodb_lock_wait_timeout = 50
|
||||
|
||||
# Security
|
||||
skip-name-resolve
|
||||
|
||||
# Binary log (for replication)
|
||||
log-bin = mysql-bin
|
||||
binlog-format = ROW
|
||||
expire_logs_days = 7
|
||||
|
||||
# Performance settings for container
|
||||
query_cache_size = 32M
|
||||
query_cache_type = 1
|
||||
tmp_table_size = 64M
|
||||
max_heap_table_size = 64M
|
||||
|
||||
# Timeout settings
|
||||
interactive_timeout = 60
|
||||
wait_timeout = 60
|
||||
net_read_timeout = 30
|
||||
net_write_timeout = 60
|
||||
|
||||
# Network settings
|
||||
max_allowed_packet = 64M
|
||||
|
||||
# Container specific settings
|
||||
# Reduce memory usage for container environment
|
||||
innodb_buffer_pool_instances = 1
|
||||
Reference in New Issue
Block a user