c77352877d
主要更新: 1. 统一所有微服务端口配置(19000-19008) 2. 为所有服务创建本地/测试/生产三套环境配置 3. 配置Nacos认证密码(本地:Peanut2817*#, 测试/生产:EmotionMuseum2025) 4. 优化网关路由配置,支持负载均衡和WebSocket 5. 新增emotion-websocket模块,支持实时聊天 6. 前端集成WebSocket,替代HTTP轮询 7. 添加配置验证和管理工具脚本 技术特性: - 完整的环境隔离和服务发现 - WebSocket实时通信支持 - 负载均衡路由配置 - 跨域和安全配置 - 自动重连和心跳检测
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
# 测试环境配置
|
|
|
|
spring:
|
|
cloud:
|
|
nacos:
|
|
discovery:
|
|
server-addr: 47.111.10.27:8848
|
|
namespace: test
|
|
group: DEFAULT_GROUP
|
|
enabled: true
|
|
username: nacos
|
|
password: EmotionMuseum2025
|
|
metadata:
|
|
version: 1.0.0
|
|
zone: test
|
|
register-enabled: true
|
|
ephemeral: true
|
|
cluster-name: DEFAULT
|
|
service: ${spring.application.name}
|
|
weight: 1
|
|
heart-beat-interval: 5000
|
|
heart-beat-timeout: 15000
|
|
ip-delete-timeout: 30000
|
|
config:
|
|
server-addr: 47.111.10.27:8848
|
|
namespace: test
|
|
group: DEFAULT_GROUP
|
|
file-extension: yml
|
|
enabled: false
|
|
username: nacos
|
|
password: EmotionMuseum2025
|
|
|
|
# 数据源配置
|
|
datasource:
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
url: jdbc:mysql://47.111.10.27:3306/emotion_museum?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
|
|
username: root
|
|
password: EmotionMuseum2025*#
|
|
|
|
# Redis配置
|
|
data:
|
|
redis:
|
|
host: 47.111.10.27
|
|
port: 6379
|
|
password: EmotionMuseum2025*#
|
|
database: 0
|
|
|
|
# 日志配置
|
|
logging:
|
|
level:
|
|
com.emotionmuseum: info
|
|
com.baomidou.mybatisplus: info
|
|
com.alibaba.nacos: warn
|
|
file:
|
|
name: logs/emotion-record-test.log
|