application-dev.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # 项目配置
  2. like:
  3. upload-directory: D:/opt/camera/
  4. # 服务配置
  5. server:
  6. port: 28080
  7. servlet:
  8. context-path: /
  9. # 框架配置
  10. spring:
  11. # 数据源配置
  12. datasource:
  13. url: jdbc:mysql://192.168.110.130:13306/taphole?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
  14. type: com.alibaba.druid.pool.DruidDataSource # 数据源类型
  15. driver-class-name: com.mysql.jdbc.Driver # MySql的驱动
  16. username: root # 数据库账号
  17. password: root # 数据库密码
  18. # Redis配置
  19. redis:
  20. host: 192.168.110.130 # Redis服务地址
  21. port: 16379 # Redis端口
  22. password: # Redis密码
  23. database: 5 # 数据库索引
  24. # lettuce:
  25. # pool:
  26. # max-wait: 30000 # 连接池最大阻塞等待时间(使用负数表示没有限制,默认-1)
  27. # max-active: 100 # 连接池最大连接数(使用负数表示没有限制,默认8)
  28. # max-idle: 20 # 连接池中的最大空闲连接(默认8)
  29. # min-idle: 0 # 连接池中的最小空闲连接(默认0)
  30. # Mybatis-plus配置 【是否开启SQL日志输出】
  31. #mybatis-plus:
  32. # configuration:
  33. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  34. camera:
  35. filepath: D:/opt/camera
  36. rtmp:
  37. rtmphost: 127.0.0.1:1935
  38. httphost: 127.0.0.1:80
  39. webrtchost: 192.168.110.130:8000
  40. socketio:
  41. # host: 127.0.0.1 #主机名,默认是 0.0.0.0 (这个设不设置无所谓,因为后面的 SocketConfig 类一般不用设置这个)
  42. port: 33000 #监听端口
  43. maxFramePayloadLength: 1048576
  44. maxHttpContentLength: 1048576
  45. bossCount: 1
  46. workCount: 100
  47. allowCustomRequests: true
  48. upgradeTimeout: 1000000 #协议升级超时时间(毫秒),默认10000。HTTP握手升级为ws协议超时时间
  49. pingTimeout: 6000000 #Ping消息超时时间(毫秒),默认60000,这个时间间隔内没有接收到心跳消息就会发送超时事件
  50. pingInterval: 25000 #Ping消息间隔(毫秒),默认25000。客户端向服务器发送一条心跳消息间隔