server:
  port: 21002
  tomcat:
    uri-encoding: UTF-8
  servlet:
    session:
      timeout: 3600

spring:
  mvc:
    pathmatch:
      matching-strategy: ant_path_matcher
  datasource:
    datasync:
      driver-class-name: com.mysql.cj.jdbc.Driver
      jdbc-url: jdbc:mysql://192.168.0.7:3368/data_sync?useUnicode=true&characterEncoding=utf8&useCompression=true&serverTimezone=GMT%2B8&useSSL=false&zeroDateTimeBehavior=CONVERT_TO_NULL
      username: v5_enterprise2021
      password: Prod_v5#202109
    tenant:
      driver-class-name: com.mysql.cj.jdbc.Driver
      jdbc-url: jdbc:mysql://192.168.0.7:3368/obpm2?useUnicode=true&characterEncoding=utf8&useCompression=true&serverTimezone=GMT%2B8&useSSL=false&zeroDateTimeBehavior=CONVERT_TO_NULL
      username: v5_enterprise2021
      password: Prod_v5#202109
    tuoluojiang:
      driver-class-name: com.mysql.cj.jdbc.Driver
      jdbc-url: jdbc:mysql://192.168.0.7:3368/tuoluojiang?useUnicode=true&characterEncoding=utf8&useCompression=true&serverTimezone=GMT%2B8&useSSL=false&zeroDateTimeBehavior=CONVERT_TO_NULL
      username: v5_enterprise2021
      password: Prod_v5#202109
    jvs:
      driver-class-name: com.mysql.cj.jdbc.Driver
      jdbc-url: jdbc:mysql://192.168.0.7:3368/jvs?useUnicode=true&characterEncoding=utf8&useCompression=true&serverTimezone=GMT%2B8&useSSL=false&zeroDateTimeBehavior=CONVERT_TO_NULL
      username: v5_enterprise2021
      password: Prod_v5#202109
  redis:
    host: 192.168.0.62 #地址
    port: 6379 #端口
    password: Bcxin@2019
    timeout: 30000 # 连接超时时间（毫秒）
    database: 8 #默认数据库
    lettuce:
      pool:
        # 连接池中的最小空闲连接
        min-idle: 0
        # 连接池中的最大空闲连接
        max-idle: 10
        # 连接池的最大数据库连接数
        max-active: 200
        # #连接池最大阻塞等待时间（使用负值表示没有限制）
        max-wait: -1ms
  kafka:
    bootstrap-servers: 192.168.0.243:9092,192.168.0.12:9092,192.168.0.126:9092
    consumer:
      key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
      value-deserializer: org.apache.kafka.common.serialization.StringDeserializer
      auto-offset-reset: latest
      enable-auto-commit: false
    listener:
      ack-mode: manual_immediate
      concurrency: 2
    retry:
      topic:
        enabled: true
        delay: 2
        max-attempts: 3

mybatis-plus:
  mapper-locations: classpath:mybatis/*Mapper.xml
  configuration:
    default-executor-type: batch
    cache-enabled: false
    use-generated-keys: true
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
    # 字段名称下划线转驼峰命名
    map-underscore-to-camel-case: true

# 日志
logging:
  level:
    com:
      bcxin:
        sync: info
    org:
      springframework:
        security: DEBUG
  config: classpath:logback-spring.xml

log:
  # 日志是否上传
  posh: false
  # 日志存放目录
  path: /data/logs
  # 日志打印级别  默认 info
  level: error
  bcx-level: info
  # 是否控制台输出，默认true
  stdout: true

# 数据同步配置
sync-config:
  # 是否默认密码
  is-default-password: true
  # jvs主租户id
  jvs-main-id: __iZjB3As6MOfttXkZTXo
  # 相关服务url地址
  api-host:
    # 本服务
    self: https://syncprod.baibaodun.cn
    # 陀螺匠
    tuoluojiang: https://tljiang.qiye.baibaodun.cn
    # v5图片服务
    image-server: https://v5qy.baibaodun.cn/obpm
    # v5域名
    v5: https://v5qy.baibaodun.cn
    # jvs
    jvs: https://document.jvs.baibaodun.com.cn/auth/just/callback
    # jvs回调地址
    jvs-oauth-callback: https://document.jvs.baibaodun.com.cn/auth/just/oauth2?stats=bcx&callbackUrl=https://document.jvs.baibaodun.com.cn/
  # oa审批模板
  oa-template:
    # 以这个企业id的oa模板进行同步
    entid: 3
  # 华为云监控配置
  huawei-ivm:
    host: https://api-ivm.myhuaweicloud.com
    user-id: 5994908220250519164352
    ak: 49b1d40f0870594e34e522db834233ca
    sk: 5f256aefd57261ae8fde307fd4547c6dcfc0cc9b091be83f0f90cb6a216bc96f
  # 回放视频存放地址-本地
  video-playback-save-path: /data/video/playback/
  # 回放视频存放地址-obs
  video-playback-save-obs-path: data/video/playback/
  # obs的cdn域名
  obs-cdn-url: https://02obs.baibaodun.cn/

# swagger 配置
swagger:
  #是否显示swagger true:显示  false:不显示
  enabled: false
