#开发环境
server:
  port: 8080
  # session失效时间
  servlet:
    session:
      timeout: 36000s
    encoding:
      force: true
      enabled: true
      charset: UTF-8
#jar外部静态目录,dev改成自己的前端路径或者前端npm启动就行
mobdna:
  profile: /data/application/mob-dna-web-all/mob-dna-web-h5
user:
  dir: /data/application/temp_file
## 专门针对 Controller层接口路径前缀全局配置
api:
  path:
    global-prefix: api
    report-prefix: api/report
    openApi-cp-Prefix: openapi/cp
spring:
  profiles:
    include: errorcode,sysconfig,common
  #需要把自定义的路径添加到static-locations后面,原本的静态访问路径也要加上不然原本的静态资源会访问不到。
  resources:
    static-locations: classpath:/META-INF/resources/,classpath:/resources/, classpath:/static/, classpath:/public/, file:${mobdna.profile}
  #json数据 日期 格式化
  jackson:
    date-format: "yyyy-MM-dd HH:mm:ss"
    time-zone: GMT+8
  # 数据源
  datasource:
    mob:
      driver-class-name: com.mysql.cj.jdbc.Driver
      jdbc-url: jdbc:mysql://dna-web-online.cok1hjnjm36n.rds.cn-north-1.amazonaws.com.cn:3306/mob_dna?useUnicode=true&characterEncoding=utf8&autoReconnect=true
      username: mobdna
      password: 94pgfe1rNbVQKodheoqD
    report:
      driver-class-name: com.mysql.cj.jdbc.Driver
      jdbc-url: jdbc:mysql://mobdna-online.cok1hjnjm36n.rds.cn-north-1.amazonaws.com.cn:3306/yy-flink?useUnicode=true&characterEncoding=utf8&autoReconnect=true
      username: mobdna
      password: ARo7vMspAdB3e3la9V4g
    # Druid连接池配置
    type: com.alibaba.druid.pool.DruidDataSource
    # 初始化
    initialSize: 5
    # 最大
    maxActive: 20
    # 最小
    minIdle: 5
    # 最大连接等待超时时间
    maxWait: 60000
    # 打开PSCache,并且指定每个连接PSCache的大小
    poolPreparedStatements: true
    maxPoolPreparedStatementPerConnectionSize: 20
    validationQuery: select 'x'
    testWhileIdle: true
    testOnBorrow: false
    testOnReturn: false
    # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
    timeBetweenEvictionRunsMillis: 60000
    # 配置一个连接在池中最小生存的时间,单位是毫秒
    minEvictableIdleTimeMillis: 300000
    # 配置监控统计拦截的filters,去掉后监控界面sql将无法统计,'wall'用于防火墙
    filters: stat, wall, slf4j
    # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
    connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
  main:
    allow-bean-definition-overriding: true

  # 文件上传大小
  servlet:
    multipart:
      # 单个文件大小
      max-file-size: 50MB
      # 一次传多个文件的总大小
      max-request-size: 100MB

  #redis
  redis:
    database: 0
    # Redis服务器地址
    host: mobdna-web-online.q6vl1z.ng.0001.cnn1.cache.amazonaws.com.cn
    port: 6379
    password:
    timeout: 5000ms

    jedis:
      pool:
        # 连接池中的最大连接数
        max-active: 8
        # 连接池中的最大空闲连接
        max-idle: 8
        min-idle: 0
        max-wait: -1ms
  # 取消spring对freemarker默认templates目录的检测
  freemarker:
    check-template-location: false
  jpa:
    open-in-view: false

###   Mybatis Config  ###
mybatis:
  check-config-location: true
  typeAliasesPackage: com.reyun.saas.**.domain
  mapperLocations: classpath:mapper/**/*.xml
  type-handlers-package: com.reyun.saas.common.mybatis.handler.*

## Pagehelper
pagehelper:
  helperDialect: mysql
  reasonable: true
  supportMethodsArguments: true
  params: count=countSql

###   通用 Mapper    ###
mapper:
  IDENTITY: mysql
  notEmpty: false
  mappers:
    - com.reyun.saas.common.core.Mapper
    - com.reyun.saas.common.core.TkMapper

# 日志
logging:
  level:
    root: info


swagger:
  title: 接口文档
  basepackage: com.reyun.saas
  version: 1.0.0

S3:
  region: cn-north-1
  bucketName: mobdna
  accessKeyId: AKIAZG2A4IXS54CU7BE5
  accessKeySecret: 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

#导出工单线程池配置
WorkOrderThreadPool:
  corePollSize: 16
  maxPollSize: 32
  #空闲线程等待时间单位为秒
  leisureAwaitTime: 5
  queueSize: 100

#临时文件存放位置
file:
  tempFilePath: /data/application/mobdna/temp

#单点登录
yuc:
  #单点登录服务器地址(注意本服务会校验ip  如果单点登录系统更换ip这里也要修改)
  host: 52.81.247.119
#  单点登录系统校验用户url
  checkUrl: https://work.reyun.com/yuc-service/auth/getUserInfoByToken

#发送邮件配置
sendCloud:
  isPro: true
  mail:
    url: http://api.sendcloud.net/apiv2/mail/send
    apiUser: TrackingIO_mail_service
    apiKey: I9OlVXux7qwPpgge
    fromMail: mobdna@reyun.com
    content_type: text/plain;charset\=GBK
  sms:
    url: http://www.sendcloud.net/smsapi/send
    smsUser: MobDNA_mobile
    smsKey: 9wtq4wCOODCsEoEL9uvpjWzTs2R5ziSD
    warningModel: 804415

  #实时的redis集群地址
realTime:
  redisCluster:
    nodes: mobdna-cache.q6vl1z.clustercfg.cnn1.cache.amazonaws.com.cn:6379