Files
msh-system/msh_crmeb_22/crmeb-front/src/main/resources/application-sophia.yml
panchengyong 3023115bb0 fix: 移除损坏的 Claude gitlink 并同步业务与文档更新
- 从索引移除误记录的 .claude/worktrees gitlink(旧绝对路径会导致 git 命令失败)
- 新增根目录 .gitignore 忽略 .claude/worktrees 与 .DS_Store
- 后端:Coze/知识库、ResultAdvice、应用配置
- 前端 uniapp:AI 营养、食物百科等页面与 API
- 更新 README、测试文档与 shop-msh.sql

Made-with: Cursor
2026-03-30 12:46:24 +08:00

118 lines
3.5 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# CRMEB 相关配置
crmeb:
imagePath: /www/wwwroot/crmebimage/ # 服务器图片路径配置 斜杠结尾
asyncConfig: true #是否同步config表数据到redis
server:
port: 20822
spring:
datasource:
name: shop-msh
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://49.235.131.69:3306/${spring.datasource.name}?useUnicode=true&serverTimezone=GMT%2B8&characterEncoding=utf8
username: root
password: mogu2018
# Druid连接池配置
druid:
initial-size: 5
min-idle: 5
max-active: 20
# 禁用验证查询解决与MySQL 8驱动的兼容性问题
validation-query: SELECT 1
test-while-idle: false
test-on-borrow: false
test-on-return: false
pool-prepared-statements: false
max-pool-prepared-statement-per-connection-size: 20
filters: stat,wall
redis:
host: 49.235.131.69 #地址 118.89.113.119 49.235.131.69
port: 6379 #端口
password: 'mogu2018'
timeout: 10000 # 连接超时时间(毫秒)
database: 3 #默认数据库
jedis:
pool:
max-active: 200 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 0 # 连接池中的最小空闲连接
time-between-eviction-runs: -1 #逐出扫描的时间间隔(毫秒) 如果为负数,则不运行逐出线程, 默认-1
second:
database: 23 # 微信accessToken存储库
debug: true
logging:
level:
io.swagger.*: error
com.zbjk.crmeb: debug
org.springframework.boot.autoconfigure: ERROR
config: classpath:logback-spring.xml
file:
path: ./logs
# mybatis 配置
mybatis-plus:
# 配置sql打印日志
configuration:
log-impl:
#swagger 配置
swagger:
basic:
enable: true #是否开启界面
check: false #是否打开验证
username: www #访问swagger的账号
password: www.com #访问swagger的密码
# Coze API 配置
coze:
api:
base-url: https://api.coze.cn
auth-type: pat # pat 或 jwt
token: pat_ehJTZT6rpqgllqiTmoeOZVRmvsLX9TMq7eVrE3E0q0HcyYQmSCqPNII8vwoaU4EW # 有效期30天
# JWT 模式配置(当 auth-type=jwt 时使用)
client-id: 1180790412263
private-key-file: classpath:coze-1180790412263-private_key.pem
public-key-id: s4lCkPcYns0EjyIZF5EqnAC58k7-NMZVEVdDkW0exyQ
connect-timeout: 30000
read-timeout: 60000
# Bot 和用户配置
default-bot-id: 7591133240535449654
default-user-id: 3243981400446844
# 工作流配置
nutrition-analysis-workflow-id: 1180790412263 #饮食打卡记录ai分析
diet-analysis-id: 1180790412263
# 腾讯云语音识别配置
tencent-asr:
# API密钥ID
secret-id: AKID76sRn273nPuCJJ6h0GNbv78zhEaosz0p
# API密钥Key需要在实际使用时提供
secret-key: kKm6FQWUNJTjuvjNo23qQozWzISuY1IL
region: ap-shanghai
connect-timeout: 30000
read-timeout: 60000
default-engine-model: 16k_zh
default-res-text-format: 0
default-channel-num: 1
enabled: true
# KieAI API 配置
kie-ai:
base-url: https://api.kie.ai
api-token: 484661585fe62c5bcb77e6d392ba8ee8
api-callback-url: https://sophia-shop.uj345.cc/api/front/kieai/callback
api-upload-base-url: https://kieai.redpandaai.co
connect-timeout: 30000
read-timeout: 60000
max-retries: 3
retry-interval: 1000
poll-interval: 2000
max-wait-time: 300000
callback-enabled: true
default-output-format: png
default-image-size: "1:1"