feat: 修复 Redis 超时问题、固定小程序端口、新增人生事件模块及优化多个页面
- 修复 Redis 超时:添加 commons-pool2 依赖,启用 Lettuce 连接池,超时提升至 15s - 固定 mini-program H5 端口为 5175,避免与 web 项目端口冲突 - 新增人生事件(life-event)模块:表单和详情页面 - 新增 EpicScript 灵感接口(Controller/Service/DTO) - 优化登录、引导、主页、记录、剧本详情等多个页面 - 优化服务管理脚本和 Nginx 配置 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -15,27 +15,28 @@ spring:
|
||||
minimum-idle: 10
|
||||
maximum-pool-size: 50
|
||||
auto-commit: true
|
||||
idle-timeout: 600000
|
||||
idle-timeout: 120000
|
||||
pool-name: EmotionHikariCP-Local
|
||||
max-lifetime: 1800000
|
||||
connection-timeout: 30000
|
||||
max-lifetime: 300000
|
||||
keepalive-time: 60000
|
||||
connection-timeout: 10000
|
||||
validation-timeout: 5000
|
||||
leak-detection-threshold: 60000
|
||||
|
||||
# Redis配置 - 与prod一致
|
||||
# Redis配置 - 远程Redis,增加超时和连接池优化
|
||||
redis:
|
||||
host: 101.200.208.45
|
||||
port: 6379
|
||||
timeout: 5000ms
|
||||
timeout: 15000ms
|
||||
database: 0
|
||||
password: EmotionMuseum2025*#
|
||||
lettuce:
|
||||
pool:
|
||||
max-active: 20
|
||||
max-wait: -1ms
|
||||
max-wait: 10000ms
|
||||
max-idle: 10
|
||||
min-idle: 5
|
||||
time-between-eviction-runs: 30s
|
||||
shutdown-timeout: 100ms
|
||||
client-name: emotion-museum-client
|
||||
|
||||
# 日志配置 - 本地开发详细日志
|
||||
|
||||
@@ -15,10 +15,11 @@ spring:
|
||||
minimum-idle: 10
|
||||
maximum-pool-size: 50
|
||||
auto-commit: true
|
||||
idle-timeout: 600000
|
||||
idle-timeout: 120000
|
||||
pool-name: EmotionHikariCP-Prod
|
||||
max-lifetime: 1800000
|
||||
connection-timeout: 30000
|
||||
max-lifetime: 300000
|
||||
keepalive-time: 60000
|
||||
connection-timeout: 10000
|
||||
validation-timeout: 5000
|
||||
leak-detection-threshold: 60000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user