# 数据源配置
spring:
  data:
    solr:
      host: http://192.168.0.175:8983/solr
      client:
        connection-timeout: 30000
        socket-timeout: 60000
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    driverClassName: com.mysql.cj.jdbc.Driver
    druid:
      # 主库数据源
      master:
        url: jdbc:mysql://192.168.0.175:3306/ltgk1?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
        username: litugaoke
        password: Litugaoke01!
      # 从库数据源
      slave:
        # 从数据源开关/默认关闭
        enabled: false
        url:
        username:
        password:
      # 初始连接数
      initialSize: 10
      # 最小连接池数量
      minIdle: 50
      # 最大连接池数量
      maxActive: 200
      # 配置获取连接等待超时的时间
      maxWait: 60000
      # 配置连接超时时间
      connectTimeout: 30000
      # 配置网络超时时间
      socketTimeout: 60000
      # 配置间隔多久才进行一次检测，检测需要关闭的空闲连接，单位是毫秒
      timeBetweenEvictionRunsMillis: 60000
      # 配置一个连接在池中最小生存的时间，单位是毫秒
      minEvictableIdleTimeMillis: 300000
      # 配置一个连接在池中最大生存的时间，单位是毫秒
      maxEvictableIdleTimeMillis: 900000
      # 配置检测连接是否有效
      validationQuery: SELECT 1 FROM DUAL
      testWhileIdle: true
      testOnBorrow: false
      testOnReturn: false
      webStatFilter:
        enabled: true
      statViewServlet:
        enabled: true
        # 设置白名单，不填则允许所有访问
        allow:
        url-pattern: /druid/*
        # 控制台管理用户名和密码
        login-username: ruoyi
        login-password: 123456
      filter:
        stat:
          enabled: true
          # 慢SQL记录
          log-slow-sql: true
          slow-sql-millis: 1000
          merge-sql: true
        wall:
          config:
            multi-statement-allow: true
  # redis 配置
  redis:
    password: Litugaoke01!
    cluster:
      nodes:
        - 192.168.0.160:6379
        - 192.168.0.160:6380
        - 192.168.0.160:6381
        - 192.168.0.175:6380
        - 192.168.0.175:6381
        - 192.168.0.175:6382
    jedis:
      pool:
        max-active: 10  # 最大活跃连接数
        max-idle: 5    # 最大空闲连接数
        min-idle: 1    # 最小空闲连接数
      timeout: 5000      # 连接超时时间（毫秒）
rocketmq:
  name-server: http://192.168.0.175:9876
  linkageProducer:
    group: test
    topic: linkageTopic
  producer:
    group: expiredKeyGroup
    expiredKeyTopic: expiredKeyTopic
  expiredConsumer:
    group: serverExpiredKeyGroup
    expiredKeyTopic: expiredKeyTopic
  threeNoBoat:
      group: three-no-boat-group-1
      topic: three-no-boat-topic
  algorithmNoThreeBoat:
    group: consumer-algorithm-no-three-boat-group
    topic: algorithm-no-three-boat-topic
weather:
  key: 39cac97968a64e24a5177f51c1c562c8
xxl:
  job:
    admin:
      addresses: http://127.0.0.1:8183/xxl-job-admin
    accessToken: default_token
    executor:
      appname: ltgk-server
      address:
      ip: 127.0.0.1
      port: 6830
      logpath: ./logs/xxl-job/jobhandler
      logretentiondays: 30

sdk:
  hk:
    getPtzCfgUrl: http://39.175.75.233:6350/hksdk/rest/sdk/getPtzCfg
    setPtzCfgUrl: http://39.175.75.233:6350/hksdk/rest/sdk/setPtzCfg
    setupAlarmChanUrl: http://39.175.75.233:6350/hksdk/rest/sdk/setupAlarmChan

# app推送服务
unipush:
  manage:
    #    监管端
    baseUrl: https://restapi.getui.com/v2/
    appId: jAzamQuY5F9Wn5wbuFjRv2
    appSecret: jXDhcT5IDa8Xaseq2drSV5
    appKey: 7Bcizp0N1T9e3XonfcNKmA
    masterSecret: U6PqfCOfpw9iDeVYQTl509
  public:
    #    公众端数据
    baseUrl: https://restapi.getui.com/v2/
    appId: 5qJdbSjuwq7sDpaBK4FVD2
    appSecret: Ali0Ekgx5n8T9PUEQRARo1
    appKey: WZ6bK1o3N26karFZyrpHw5
    masterSecret: sDNfdQBYhg8xwFrlshE3m7

path:
  meteorologyByPosition: http://service.qdlimap.cn:11001/jxhyb/ecmwfData/ecmwf-PointsInfos
# 日志配置
logging:
  level:
    com.ltgk: ERROR
    org.springframework: ERROR
    org.eclipse.paho: ERROR
    org.springframework.integration: ERROR
    org.springframework.data.solr: ERROR
    org.springframework.web: ERROR
    org.apache.catalina: ERROR
sensitive-words:
  # 常见中文人名（含拼音）
  chinese-names:
    - zhangsan
    - lisi
    - wangwu
    - zhaoliu
    - liuyi
    - chener
    - wangfang
    - liwei
    - zhangwei
    - liuqiang
    - chenjing
    - lina
    - wangjing
    - wangli
    - liqiang
    - zhangmin
    - wangmin
    - wanglei
    - lijun
    - liuyang
  # 常见英文人名
  english-names:
    - john
    - mary
    - michael
    - jane
    - david
    - james
    - robert
    - maria
    - william
    - anna

  # 公司/品牌名称（含拼音及英文）
  company-names:
    - alibaba
    - tencent
    - baidu
    - huawei
    - xiaomi
    - bytedance
    - jd
    - netease
    - wechat
    - alipay
    - taobao
    - douyin
    - gongsi
    - qiye
    - jituan

  # 系统相关敏感词（含拼音及英文）
  system-words:
    - ruoyi
    - xitong
    - system
    - guanliyuan
    - admin
    - administrator
    - yonghu
    - user
    - mima
    - password
    - denglu
    - login
    - root
    - test
    - demo
  # 其他敏感词（简单序列、日期等）
  other-sensitive:
    - 123456
    - 654321
    - 111111
    - 000000
    - 2023
    - 2024
    - 2025
    - abcdef
    - fedcba