Files
msh-system/models-integration/target/classes/application.yml

111 lines
3.8 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.
# Spring Boot 应用配置文件
spring:
profiles:
active: sophia
servlet:
multipart:
max-file-size: 50MB #设置单个文件大小
max-request-size: 50MB #设置单次请求文件的总大小
application:
name: models-integration #这个很重要这在以后的服务与服务之间相互调用一般都是根据这个name
# 数据库配置
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://49.235.131.69:3306/shop_msh?useUnicode=true&serverTimezone=GMT%2B8&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false
username: baisui
password: fFmTJhBEFSnYGYW7
# 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
# 不同数据源配置
shop-msh:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://49.235.131.69:3306/shop_msh?useUnicode=true&serverTimezone=GMT%2B8&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false
username: baisui
password: fFmTJhBEFSnYGYW7
jzjg-jxz:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://49.235.131.69:3306/jzjg_jxz?useUnicode=true&serverTimezone=GMT%2B8&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false
username: baisui
password: fFmTJhBEFSnYGYW7
main:
allow-circular-references: true
redis:
host: 118.89.113.119 #地址
port: 6379 #端口
password: 'UthinkCloud2017'
timeout: 10000 # 连接超时时间(毫秒)
database: 27 #默认数据库 jxz项目
jedis:
pool:
max-active: 200 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 0 # 连接池中的最小空闲连接
time-between-eviction-runs: -1 #逐出扫描的时间间隔(毫秒) 如果为负数,则不运行逐出线程, 默认-1
# 自定义配置
app:
# 应用名称
name: models-integration-api
# 应用版本
version: 1.0.0
# 数据同步配置
sync:
batch-size: 100
interval-seconds: 3600
enabled: true
# KieAI API配置
kie-ai:
# API基础URL
base-url: https://api.kie.ai
# API Token (需要在环境变量或配置文件中设置)
api-token: 484661585fe62c5bcb77e6d392ba8ee8
# 回调URL
api-callback-url: https://sophia-shop.uj345.cc/models/api/kieai/callback20994
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: "2:3"
# Coze API 配置
coze:
api:
base-url: https://api.coze.cn
auth-type: jwt # pat 或 jwt
# token: ${COZE_API_TOKEN} # pat方式时
client-id: 1180790412263
private-key-file: classpath:coze-1180790412263-private_key.pem
public-key-id: s4lCkPcYns0EjyIZF5EqnAC58k7-NMZVEVdDkW0exyQ
connect-timeout: 30000
read-timeout: 60000
nutrition-analysis-workflow-id: 1180790412263 #饮食打卡记录ai分析
diet-analysis-id: 1180790412263