server:
  port: 8899
  undertow:
    threads:
      # io线程数，主要执行费阻塞的任务
      io: 8
      # 阻塞任务线程池
      worker: 50
    # 每块buffer的空间大小，越小的空间被利用越充分
    buffer-size: 1024
    # 是否分配的直接内存
    direct-buffers: true
  error:
    include-binding-errors: on_param
    include-stacktrace: on_param

# 日志配置
logging:
  level:
    com.simuwang.base.mapper: debug
  config: classpath:logback.xml

spring:
  application:
    name: data-daq
  datasource:
    data-daq:
      # 指定为HikariDataSource
      type: com.zaxxer.hikari.HikariDataSource
      driver-class-name: dm.jdbc.driver.DmDriver
      url: jdbc:dm://192.168.1.39:5236/?schema=PPW_EMAIL
      username: PPW_EMAIL
      password: Dmppw2024
      # hikari连接池配置 对应 HikariConfig 配置属性类
      hikari:
        pool-name: HikariCP-daq
        # 连接池最大连接数，默认是10
        maximum-pool-size: 10
        # 此属性控制从池返回的连接的默认自动提交行为,默认值：true
        auto-commit: true
        # 此属性控制池中连接的最长生命周期，值0表示无限生命周期，默认30分钟
        max-lifetime: 900000
        # 数据库连接超时时间,设置为300秒超时
        connection-timeout: 300000
        # keepalive time
        keepalive-time: 60000
  task:
    groupName: PPW_EMAIL
  jackson:
    date-format: yyyy-MM-dd HH:mm:ss
    time-zone: Asia/Shanghai

  mail:
    host: smtp.exmail.qq.com
    port: 465
    protocol: smtp
    username: chenjianhua@simuwang.com
    password: Cjh@2021
    properties:
      mail:
        smtp:
          auth: true
          ssl:
            enable: true

email-rule:
  nav: "净值,业绩报酬,规模"
  valuation: "估值表"
  report: "月报,年报,季报,报告（待确认）信息披露报告,证券类月报"

email:
  file:
    path: /data/file/nav

# 配置
simuwang:
  # 是否启用quartz定时任务功能
  enable-quartz: false
  # 操作日志功能是否启用，启用了才会记录操作日志
  enable-logging: true
  default-pwd: "QWER1234!@#$"
  # token过期时间，单位：分钟
  token-expire: 1440
  token-secret: qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm12
  # rsa 公钥私钥配置
  security-rsa:
    public-key: M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
  # shiro的路由过滤器配置
  shiro-filter-chain:
    - path: "/static/**"
      filters: anon
    - path: "v1/test/**"
      filters: anon
    - path: "/v1/login"
      filters: anon
    - path: "/v1/rsa-key"
      filters: anon
    - path: "/v1/**"
      filters: jwt
    - path: "/**"
      filters: jwt
