server:
  port: 9999
  tomcat:
    accesslog:
      enabled: true
      buffered: true
      directory: /var/logs
      file-date-format: -yyyy-MM-dd
      pattern: common
      prefix: tomcat-im
      rename-on-rotate: false
      request-attributes-enabled: false
      rotate: true
      suffix: .log
      uri-encoding: UTF-8
  ssl:
    enabled: false
    key-alias: sealclass
    key-store: classpath:sealclass.key
    key-store-password: 123456

eureka:
  client:
    serviceUrl:
      defaultZone: http://admin:admin123@localhost:8761/eureka/eureka/

spring:
  application:
    name: im-server

  datasource:
    name: test
    url: jdbc:mysql://47.114.176.40:3306/edu_saas?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai
    username: edu_saas
    password: dayaDataOnline@2019
    # 使用druid数据源
    type: com.alibaba.druid.pool.DruidDataSource
    driver-class-name: com.mysql.cj.jdbc.Driver
    filters: stat
    maxActive: 20
    initialSize: 1
    maxWait: 60000
    minIdle: 1
    timeBetweenEvictionRunsMillis: 60000
    minEvictableIdleTimeMillis: 300000
    validationQuery: select 'x'
    testWhileIdle: true
    testOnBorrow: false
    testOnReturn: false
    poolPreparedStatements: true
    maxOpenPreparedStatements: 20

  redis:
    host: 47.114.176.40
    port: 6379
    password: dyym
    database: 1
    #连接超时时间（毫秒）
    timeout: 10000
    pool:
      #连接池最大连接数（使用负值表示没有限制）
      max-active: 10
      #连接池最大阻塞等待时间（使用负值表示没有限制）
      max-wait: -1
      #连接池中的最大空闲连接
      max-idle: 10
      #连接池中的最小空闲连接
      min-idle: 0

swagger:
  base-package: com.keao.edu.im.controller

ribbon:
  ReadTimeout: 60000
  ConnectTimeout: 60000

##认证
security:
  oauth2:
    client:
      client-id: student
      client-secret: student
    resource:
      token-info-uri: http://localhost:8001/oauth/check_token

#spring boot admin 相关配置
management:
  endpoints:
    web:
      exposure:
        include: "*"
  endpoint:
    health:
      show-details: ALWAYS

cn:
  rongcloud:
    jwt:
      secret: ay9pL#$Ws8Lpapo
      ttlInMilliSec: -1
    im:
      appkey: 8luwapkv84g3l
      secret: 7s6m56VCL6Pi
      host: http://api-cn.ronghub.com
      rtcHost: http://rtcapi-cn.ronghub.com
    whiteboard:
      host: https://sealclass.rongcloud.cn/ewb
    hereWhite:
      url: https://cloudcapiv4.herewhite.com
      token: WHITEcGFydG5lcl9pZD1EUzdrQ3JOenJnRU1Hc1ZnelV5T1czOFl3ZlJuTUF5MjMyMmkmc2lnPTUwMjEwNDVjNzY3Mzc1YjEyZDEzYWY4MDM4M2Q5MTA0YTJhNGQwYjM6YWRtaW5JZD00ODkmcm9sZT1taW5pJmV4cGlyZV90aW1lPTE2MDI0MDIzMDUmYWs9RFM3a0NyTnpyZ0VNR3NWZ3pVeU9XMzhZd2ZSbk1BeTIzMjJpJmNyZWF0ZV90aW1lPTE1NzA4NDUzNTMmbm9uY2U9MTU3MDg0NTM1Mjc1MzAw
    web:
      enableCors: true
    room:
      maxCount: 16
      taskTtl: 30000
      roomTtl: 7200000
      userIMOfflineKickTtl: 300000

message:
  debugMode: true

push:
  jiguang:
    reqURL: https://api.jpush.cn/v3/push
    appKey:
      student: 0e7422e1d6e73637e678716a
      teacher: 7e0282ca92c12c8c45a93bb3
      system: a003c997b1add94aa8d6caf9
    masterSecret:
      student: c2361016604eab56ab2db2ac
      teacher: d47430e2f4755ef5dc050ac5
      system: c281fe6a21acf2e8a9f9d628
    apns_production: false
