server:
  port: 6040

sm4:
  key: 1234567890123456
  public-key: ZpX4mTkcNwL58qAhFD1bEy7vRCMzxgKQ
  private-key: aX7pKf2LtQ9sVmZ3
  open-url: http://8.137.127.56:3340
  open-url-local: http://192.168.1.8:3338

emoon:
  admin:
    url: http://8.137.127.56:3340
    url-local: http://192.168.1.8:3338
  # emoon匹配接口配置
  matching:
    url: http://8.136.61.90:5666/api  # emoon匹配接口地址（已包含/api前缀）
    username: test  # RAG认证用户名
    password: test123  # RAG认证密码
    maxDistance: 0.7  # RAG相似度匹配的最大距离（默认0.7）

# DeepSeek API配置
deepseek:
  api:
    key: sk-ba46ccfb4e184a74af747246d1f0916e  # DeepSeek API密钥

spring:
  datasource:
    dynamic:
      datasource:
        admin:
          type: ${spring.datasource.type}
          driver-class-name: com.mysql.cj.jdbc.Driver
          url: jdbc:mysql://8.136.61.90:3307/emoon_ai_plus?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
          username: emoon_ai_plus
          password: HE2WrbSzY7tjHfWj
        open:
          type: ${spring.datasource.type}
          driverClassName: com.mysql.cj.jdbc.Driver
          url: jdbc:mysql://8.136.61.90:3307/open_emoon_com?useSSL=false&serverTimezone=Asia/Shanghai
          username: open_emoon_com
          password: GitJxZxEdMaYK2ac
      primary: admin
      # 严格模式 匹配不到数据源则报错
      strict: true
    type: com.zaxxer.hikari.HikariDataSource
  data:
    redis:
      # 地址
      host: 8.136.61.90
      # 端口，默认为6379
      port: 6380
      # 数据库索引
      database: 0
      # 密码(如没有密码请注释掉)
      password: HE2WrbSzY7tjHfWj;
      # 连接超时时间
      timeout: 10S
      # 是否开启ssl
      ssl:
        enabled: false

# redisson 配置
redisson:
  # redis key前缀
  keyPrefix: "openplatform:"
  # 线程池数量
  threads: 4
  # Netty线程池数量
  nettyThreads: 8
  # 单节点配置
  singleServerConfig:
    # Redis服务器地址
    address: redis://8.136.61.90:6380
    # Redis密码
    password: HE2WrbSzY7tjHfWj;
    # 客户端名称 不能用中文
    clientName: openplatform
    # 最小空闲连接数
    connectionMinimumIdleSize: 8
    # 连接池大小
    connectionPoolSize: 32
    # 连接空闲超时，单位：毫秒
    idleConnectionTimeout: 10000
    # 命令等待超时，单位：毫秒
    timeout: 3000
    # 发布和订阅连接池大小
    subscriptionConnectionPoolSize: 50
mybatis-plus:
  mapperPackage: com.emoon.**.mapper
  global-config:
    db-config:
      id-type: auto
  configuration:
    map-underscore-to-camel-case: true
    auto-mapping-behavior: full
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

xinference:
  url: http://60.164.133.40:19997/

file:
  #上传附件保存本地地址
  upload-path: /www/knowledge/files/
  #上传附件访问地址
  base-url: http://192.168.0.77:5666

feign:
  admin-url: http://localhost:8080

# 日志配置
logging:
  level:
    com.emoon: info
    org.springframework: warn
    org.mybatis.spring.mapper: error
    root: info
  config: classpath:logback-plus.xml
