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