
#服务器配置
server:
  port: 9527
  undertow:
    # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
    io-threads: 16
    # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
    worker-threads: 400
    # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
    buffer-size: 1024
    # 是否分配的直接内存
    direct-buffers: true

spring:
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    #driver-class-name: org.postgresql.Driver
    #driver-class-name: oracle.jdbc.OracleDriver
    druid:
      # MySql、PostgreSQL校验
      validation-query: select 1
      # Oracle校验
      #validation-query: select 1 from dual
      validation-query-timeout: 2000
      initial-size: 5
      max-active: 20
      min-idle: 5
      max-wait: 60000
      test-on-borrow: false
      test-on-return: false
      test-while-idle: true
      time-between-eviction-runs-millis: 60000
      min-evictable-idle-time-millis: 300000
      stat-view-servlet:
        enabled: true
        login-username: blade
        login-password: 1qaz@WSX
      web-stat-filter:
        enabled: true
        url-pattern: /*
        exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
        session-stat-enable: true
        session-stat-max-count: 10

# mybatis
mybatis-plus:
  mapper-locations: classpath:org/springblade/**/mapper/*Mapper.xml
  #实体扫描，多个package用逗号或者分号分隔
  typeAliasesPackage: org.springblade.**.entity
  #typeEnumsPackage: org.springblade.dashboard.entity.enums
  global-config:

    # 关闭MP3.0自带的banner
    banner: false
    db-config:
      #主键类型  0:"数据库ID自增", 1:"不操作", 2:"用户输入ID",3:"数字型snowflake", 4:"全局唯一ID UUID", 5:"字符串型snowflake";
      id-type: id_worker
      #字段策略
      insert-strategy: not_null
      update-strategy: not_null
      select-strategy: not_empty
      #驼峰下划线转换
      table-underline: true
      # 逻辑删除配置
      # 逻辑删除全局值（1表示已删除，这也是Mybatis Plus的默认配置）
      logic-delete-value: 1
      # 逻辑未删除全局值（0表示未删除，这也是Mybatis Plus的默认配置）
      logic-not-delete-value: 0
  configuration:
    map-underscore-to-camel-case: true
    cache-enabled: false

#swagger公共信息
swagger:
  title: 宁夏数字社区接口文档
  description: 宁夏数字社区接口文档
  version: 2.3.0.RELEASE
  license:
  license-url:
  terms-of-service-url:
  contact:
    name:
    email:
    url:

#flowable配置
flowable:
  activity-font-name: \u5B8B\u4F53
  label-font-name: \u5B8B\u4F53
  annotation-font-name: \u5B8B\u4F53
  check-process-definitions: false

#oss默认配置
oss:
  enable: true
  name: qiniu
  tenant-mode: true
  endpoint: http://prt1thnw3.bkt.clouddn.com
  access-key: N_Loh1ngBqcJovwiAJqR91Ifj2vgOWHOf8AwBA_h
  secret-key: AuzuA1KHAbkIndCU0dB3Zfii2O3crHNODDmpxHRS
  bucket-name: bladex

##第三方登陆配置
#social:
#  oauth:
#    CTWING:
#      client-id: 8135892866
#      client-secret: SnpYtQuSDrb3igRzIzFerfLxOMTC8sd2
#      redirect-uri: ${social.domain}/oauth/redirect/CTWING
#    GITHUB:
#      client-id: 233************
#      client-secret: 233************************************
#      redirect-uri: ${social.domain}/oauth/redirect/github

document:
  swagger:
    modules:
      - groupName: 宁夏数字社区平台
        basePackages: org.springblade


#blade配置
blade:
  xss:
    skip-url:
      - /weixin
      - /notice/submit
#      - /smartapplication/**
  secure:

    skip-url:
      - /blade-user/oauth/token
      - /blade-user/third/oauth/token
      - /blade-user/oauth/render/**
      - /blade-test/**
      - /smartapplication/**
      - /external/**
      - /upload/putfile
      - /openinterface/iot/listen/**
      - /openinterface/carbarrier/listen/**
      - /openinterface/temperature/**
      - /openinterface/listen/**
      - /openinterface/jiyue/**
      - /openinterface/iot/device/**
      - /openinterface/elevator/**
      - /device/**
      - /agency/agency/getAgencyTenantList
      - /huawei/sms/**
      - /appconf/appconf/getById
      - /wx/**
      - /estate/guest/getByGuestOpenId
      - /system/tenanttype/getTenantInfo
      - /community/enterprisestaff/app/getManagerList
      - /community/enterprisestaff/app/login
      - /system/options/getByTenantId
      - /grid-community/**
      - /blade-sysarea/sysarea/getFullJson
      - /DeviceEndianHeartbeat
      - /DeviceEndianCommand
      - /DeviceEndianEvent
      - /door/open/getQLOpenLogsTest
      - /yc_video_cloud_device/videoclouddevice/syncByAccount
    client:
      - client-id: sword
        path-patterns:
          - /blade-sword/**
      - client-id: saber
        path-patterns:
          - /blade-saber/**
  tenant:
    enhance: true
    column: tenant_id
    exclude-tables:
      - blade_user
      - blade_dict_biz
      - system_street
      - yc_repeater
  data-scope:
    mapper-key:
      - Page
      - List
      - page
      - list


sms:
  xlpark:
    url: https://rtcsms.cn-north-1.myhuaweicloud.com:10743/sms/batchSendSms/v1
    appKey: 2KOvL5SD35814lKm40JTa703mpgU
    appSecret: 0i892VhpPX3Ip4vT7zF55R59w8Hi
    sender: 8820122129194
    templateId: 7a5f1b9f0c0f44bd9ebb372b6314d90d
    signature: 新邻园区

healthcode:
  productId: a178d951882745e0
  productSecret: 3b0f485e957e4b4b

knife4j:
  enable: true
  setting:
    enableDebug: true

#springfox:
#  documentation:
#    swagger:
#      v2:
#        path: \
#        host: /111111
#springfox:
#  documentation:
#    swagger:
#      v2:
#        path: \
#        host: /111111


