server:
  port: 8084

spring:
  application:
    name: backend

    # 视频上传配置
  servlet:
    multipart:
      max-file-size: 500MB
      max-request-size: 500MB
  # 数据库配置
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://localhost:3306/demo?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
    username: root
    password: root
    
  # Redis配置
  data:
    redis:
      host: localhost
      port: 6379
      password: 123456 # 如果有密码,请设置
      database: 8
      timeout: 10000
      lettuce:
        pool:
          max-active: 8
          max-wait: -1
          max-idle: 8
          min-idle: 0

  # 邮件配置
  mail:
    host: smtp.163.com
    protocol: smtp
    default-encoding: UTF-8
    username: 17653478621@163.com
    password: NMRzfpuL6kbL4euT
    test-connection: true
    properties:
      mail:
        smtp:
          auth: true
          starttls:
            enable: true
            required: true

  # SQL初始化配置
  sql:
    init:
      mode: never  # 禁用SQL初始化
  
  # 自动配置排除
  autoconfigure:
    exclude:
      - org.springframework.boot.autoconfigure.sql.init.SqlInitializationAutoConfiguration

  # MyBatis-Plus配置
  mybatis-plus:
    global-config:
      db-config:
        id-type: auto
        logic-delete-field: deleted
        logic-delete-value: 1
        logic-not-delete-value: 0
    configuration:
      map-underscore-to-camel-case: true
      log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

  # JWT配置
jwt:
  secret: javax.crypto.spec.SecretKeySpec@5884561.Guwan.javax.crypto.spec.SecretKeySpec@5884561
  expiration: 86400000  # 24小时

  # 阿里云配置
aliyun:
  sms:

  # MinIO配置
minio:
    endpoint: http://localhost:9000
    accessKey: admin
    secretKey: admin123456
    bucket:
      files: files      # 文件桶
      images: images    # 图片桶

  # 文件上传配置
file:
    upload:
     path: D:/upload  # Windows路径示例,根据实际情况修改





# Swagger配置
springdoc:
  swagger-ui:
    path: /swagger-ui.html
    tags-sorter: alpha
    operations-sorter: alpha
    enabled: true
    disable-swagger-default-url: true
  api-docs:
    path: /v3/api-docs
    enabled: true
  group-configs:
    - group: '默认'
      paths-to-match: '/**'
  packages-to-scan: com.guwan.backend.controller


config:
  arcface-sdk:
    version: 4.1
    app-id: 5nPWymNAibvWTq6XPypUWxroyzjMScZ9RwVkDjCFgK32
    sdk-key: 7dsPvanADtYAP1TiiiFjTsms2mAU85m5duVwHChhumyV
    active-key: 86C1-11T1-K131-FJQU
    active-file: 86C111T1K131FJQU.dat
    detect-pool-size: 16
    compare-pool-size: 16
    rec-face-thd: 0.8
    rec-id-thd: 0.5

# SRS配置
srs:
  server:
    url: http://localhost:1985  # SRS HTTP API地址

easy-es:
  enable: true
  address: localhost:9200
  global-config:
    process-index-mode: manual
    print-dsl: true
    distributed: false
    response-log: true
    db-config:
      map-underscore-to-camel-case: true
      index-prefix: product_
    async-process: true
    schema-update: true
    max-connect-num: 50
    connect-timeout: 5000
    socket-timeout: 60000

netty:
  danmaku:
    port: 8085
  chat:
    port: 8086
  stream:
    port: 8087
  heartbeat:
    interval: 30
  cluster:
    nodes: localhost:8088,localhost:8089

go2rtc:
  api:
    url: http://localhost:1984  # Go2RTC API地址