application.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. server:
  2. port: 9999
  3. tomcat:
  4. accesslog:
  5. enabled: true
  6. buffered: true
  7. directory: /var/logs
  8. file-date-format: -yyyy-MM-dd
  9. pattern: common
  10. prefix: tomcat-im
  11. rename-on-rotate: false
  12. request-attributes-enabled: false
  13. rotate: true
  14. suffix: .log
  15. uri-encoding: UTF-8
  16. ssl:
  17. enabled: false
  18. key-alias: sealclass
  19. key-store: classpath:sealclass.key
  20. key-store-password: 123456
  21. eureka:
  22. client:
  23. serviceUrl:
  24. defaultZone: http://admin:admin123@localhost:8761/eureka/eureka/
  25. spring:
  26. application:
  27. name: im-server
  28. datasource:
  29. name: test
  30. url: jdbc:mysql://47.114.176.40:3306/edu_saas?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  31. username: edu_saas
  32. password: dayaDataOnline@2019
  33. # 使用druid数据源
  34. type: com.alibaba.druid.pool.DruidDataSource
  35. driver-class-name: com.mysql.cj.jdbc.Driver
  36. filters: stat
  37. maxActive: 20
  38. initialSize: 1
  39. maxWait: 60000
  40. minIdle: 1
  41. timeBetweenEvictionRunsMillis: 60000
  42. minEvictableIdleTimeMillis: 300000
  43. validationQuery: select 'x'
  44. testWhileIdle: true
  45. testOnBorrow: false
  46. testOnReturn: false
  47. poolPreparedStatements: true
  48. maxOpenPreparedStatements: 20
  49. redis:
  50. host: 47.114.176.40
  51. port: 6379
  52. password: dyym
  53. database: 1
  54. #连接超时时间(毫秒)
  55. timeout: 10000
  56. pool:
  57. #连接池最大连接数(使用负值表示没有限制)
  58. max-active: 10
  59. #连接池最大阻塞等待时间(使用负值表示没有限制)
  60. max-wait: -1
  61. #连接池中的最大空闲连接
  62. max-idle: 10
  63. #连接池中的最小空闲连接
  64. min-idle: 0
  65. swagger:
  66. base-package: com.keao.edu.im.controller
  67. ##认证
  68. security:
  69. oauth2:
  70. client:
  71. client-id: student
  72. client-secret: student
  73. resource:
  74. token-info-uri: http://localhost:8001/oauth/check_token
  75. #spring boot admin 相关配置
  76. management:
  77. endpoints:
  78. web:
  79. exposure:
  80. include: "*"
  81. endpoint:
  82. health:
  83. show-details: ALWAYS
  84. cn:
  85. rongcloud:
  86. jwt:
  87. secret: ay9pL#$Ws8Lpapo
  88. ttlInMilliSec: -1
  89. im:
  90. appkey: c9kqb3rdc451j
  91. secret: gnskN9VRnbm
  92. host: http://api-cn.ronghub.com
  93. whiteboard:
  94. host: https://sealclass.rongcloud.cn/ewb
  95. hereWhite:
  96. url: https://cloudcapiv4.herewhite.com
  97. token: WHITEcGFydG5lcl9pZD1EUzdrQ3JOenJnRU1Hc1ZnelV5T1czOFl3ZlJuTUF5MjMyMmkmc2lnPTUwMjEwNDVjNzY3Mzc1YjEyZDEzYWY4MDM4M2Q5MTA0YTJhNGQwYjM6YWRtaW5JZD00ODkmcm9sZT1taW5pJmV4cGlyZV90aW1lPTE2MDI0MDIzMDUmYWs9RFM3a0NyTnpyZ0VNR3NWZ3pVeU9XMzhZd2ZSbk1BeTIzMjJpJmNyZWF0ZV90aW1lPTE1NzA4NDUzNTMmbm9uY2U9MTU3MDg0NTM1Mjc1MzAw
  98. web:
  99. enableCors: true
  100. room:
  101. maxCount: 16
  102. taskTtl: 30000
  103. roomTtl: 7200000
  104. userIMOfflineKickTtl: 300000
  105. message:
  106. debugMode: true