application.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. server:
  2. port: 8888
  3. spring:
  4. application:
  5. name: im-platform
  6. mvc:
  7. pathmatch:
  8. matching-strategy: ant_path_matcher
  9. datasource:
  10. initialSize: 5
  11. minIdle: 5
  12. maxActive: 20
  13. # 配置获取连接等待超时的时间
  14. maxWait: 60000
  15. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  16. timeBetweenEvictionRunsMillis: 60000
  17. # 配置一个连接在池中最小生存的时间,单位是毫秒
  18. minEvictableIdleTimeMillis: 300000
  19. validationQuery: SELECT 1 FROM DUAL
  20. testWhileIdle: true
  21. testOnBorrow: false
  22. testOnReturn: false
  23. driver-class-name: com.mysql.jdbc.Driver
  24. url: jdbc:mysql://121.37.9.195:3306/box-im?serverTimezone=CST&allowMultiQueries=true&useUnicode=true&useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true&nullCatalogMeansCurrent=true
  25. username: root
  26. password: Willalp_2023
  27. redis:
  28. host: 127.0.0.1
  29. port: 6379
  30. servlet:
  31. multipart:
  32. max-file-size: 50MB
  33. max-request-size: 50MB
  34. mybatis-plus:
  35. configuration:
  36. # 是否开启自动驼峰命名规则
  37. map-underscore-to-camel-case: false
  38. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  39. mapper-locations:
  40. - classpath*:mapper/*.xml
  41. minio:
  42. endpoint: http://60.188.249.11:9002 #内网地址
  43. public: http://60.188.249.11:9002 #外网访问地址
  44. accessKey: AHycb6DC9fH3YNsr9cPW
  45. secretKey: uchI4mIGmVFQV9ghbp8u1HYn2i3QB13nfYTRf8vP
  46. bucketName: box-im
  47. imagePath: image
  48. filePath: file
  49. videoPath: video
  50. webrtc:
  51. iceServers:
  52. - urls: stun:stun.l.google.com:19302
  53. jwt:
  54. accessToken:
  55. expireIn: 1800 #半个小时
  56. secret: MIIBIjANBgkq
  57. refreshToken:
  58. expireIn: 604800 #7天
  59. secret: IKDiqVmn0VFU