ca42a7d9a4
- 删除分布式架构相关文件和配置 - 将backend-distributed重命名为backend保留分布式代码作为参考 - 优化backend-single单体架构实现 - 添加Coze API集成相关文档和测试 - 清理项目根目录的部署脚本和配置文件 - 更新WebSocket和消息服务实现 - 完善认证服务和密码加密功能
83 lines
1.9 KiB
YAML
83 lines
1.9 KiB
YAML
# 本地开发环境配置
|
|
|
|
spring:
|
|
cloud:
|
|
nacos:
|
|
discovery:
|
|
server-addr: localhost:8848
|
|
namespace:
|
|
group: DEFAULT_GROUP
|
|
enabled: true
|
|
username: nacos
|
|
password: Peanut2817*#
|
|
metadata:
|
|
version: 1.0.0
|
|
zone: local
|
|
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: localhost:8848
|
|
namespace:
|
|
group: DEFAULT_GROUP
|
|
file-extension: yml
|
|
enabled: false
|
|
username: nacos
|
|
password: Peanut2817*#
|
|
|
|
# 数据源配置
|
|
datasource:
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
url: jdbc:mysql://localhost:3306/emotion_museum?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
|
|
username: root
|
|
password: 123456
|
|
|
|
# Redis配置
|
|
data:
|
|
redis:
|
|
host: localhost
|
|
port: 6379
|
|
password:
|
|
database: 0
|
|
|
|
# Coze平台配置
|
|
coze:
|
|
base-url: https://api.coze.cn
|
|
api-key: your-coze-api-key
|
|
bot-id: 7523042446285439016
|
|
workflow-id: 7523047462895796287
|
|
user-id: emotion-museum-user
|
|
token: pat_GCR4qKzqpf90wMCvKsldMrB18KG3QsLDci65bZthssKsbLxu8X70BKYumleDcabO
|
|
timeout: 60
|
|
max-retries: 3
|
|
stream: false
|
|
model:
|
|
temperature: 0.7
|
|
max-tokens: 1000
|
|
top-p: 0.9
|
|
frequency-penalty: 0.0
|
|
presence-penalty: 0.0
|
|
|
|
# 功能开关配置
|
|
features:
|
|
emotion-analysis:
|
|
enabled: false
|
|
auto-analyze: false
|
|
chat:
|
|
enabled: true
|
|
stream: false
|
|
|
|
# 日志配置
|
|
logging:
|
|
level:
|
|
com.emotionmuseum: debug
|
|
com.baomidou.mybatisplus: debug
|
|
com.alibaba.nacos: info
|
|
file:
|
|
name: logs/emotion-ai-local.log
|