Commit fd7c7b1e3ed766fa9d613fb858a27847c8145805

Authored by 王鑫
1 parent e2e22b46

fix():配置文件上传

src/main/resources/application-wx-local.yml 0 → 100644
  1 +my:
  2 + ip: 127.0.0.1
  3 +spring:
  4 + # 设置接口超时时间
  5 + mvc:
  6 + async:
  7 + request-timeout: 20000
  8 + thymeleaf:
  9 + cache: false
  10 + # [可选]上传文件大小限制
  11 + servlet:
  12 + multipart:
  13 + max-file-size: 10MB
  14 + max-request-size: 100MB
  15 + # REDIS数据库配置
  16 + redis:
  17 + # [必须修改] Redis服务器IP, REDIS安装在本机的,使用127.0.0.1
  18 + host: 127.0.0.1
  19 + # [必须修改] 端口号
  20 + port: 6379
  21 + # [可选] 数据库 DB
  22 + database: 0
  23 + # [可选] 访问密码,若你的redis服务器没有设置密码,就不需要用密码去连接
  24 + # password: guzijian
  25 + # [可选] 超时时间
  26 + timeout: 10000
  27 + password: wx0713101x
  28 + # mysql数据源
  29 + datasource:
  30 + dynamic:
  31 + primary: master
  32 + datasource:
  33 + master:
  34 + type: com.zaxxer.hikari.HikariDataSource
  35 + driver-class-name: com.mysql.cj.jdbc.Driver
  36 + url: jdbc:mysql://127.0.0.1:3310/wvp2?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true&serverTimezone=PRC&useSSL=false&allowMultiQueries=true&sessionVariables=sql_mode='NO_ENGINE_SUBSTITUTION'&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull
  37 + username: root
  38 + password: wx0713101x
  39 + hikari:
  40 + connection-timeout: 20000 # 是客户端等待连接池连接的最大毫秒数
  41 + initialSize: 50 # 连接池初始化连接数
  42 + maximum-pool-size: 200 # 连接池最大连接数
  43 + minimum-idle: 10 # 连接池最小空闲连接数
  44 + idle-timeout: 300000 # 允许连接在连接池中空闲的最长时间(以毫秒为单位)
  45 + max-lifetime: 1200000 # 是池中连接关闭后的最长生命周期(以毫秒为单位)
  46 +#[可选] WVP监听的HTTP端口, 网页和接口调用都是这个端口
  47 +server:
  48 + port: 16030
  49 + # [可选] HTTPS配置, 默认不开启
  50 + ssl:
  51 + # [可选] 是否开启HTTPS访问
  52 + enabled: false
  53 + # [可选] 证书文件路径,放置在resource/目录下即可,修改xxx为文件名
  54 + key-store: classpath:Aserver.keystore
  55 + # [可选] 证书密码
  56 + key-store-password: guzijian
  57 + # [可选] 证书类型, 默认为jks,根据实际修改
  58 + key-store-type: JKS
  59 +
  60 +# 作为28181服务器的配置
  61 +# 作为28181服务器的配置
  62 +# 作为28181服务器的配置
  63 +sip:
  64 + # [必须修改] 本机的IP,对应你的网卡,监听什么ip就是使用什么网卡,
  65 + # 如果要监听多张网卡,可以使用逗号分隔多个IP, 例如: 192.168.1.4,10.0.0.4
  66 + # 如果不明白,就使用0.0.0.0,大部分情况都是可以的
  67 + # 请不要使用127.0.0.1,任何包括localhost在内的域名都是不可以的。
  68 + ip: ${my.ip}
  69 +# wanIp: 61.169.120.202 # zlm所在服务器的公网IP
  70 + # [可选] 28181服务监听的端口
  71 + port: 17008
  72 +
  73 + # 根据国标6.1.2中规定,domain宜采用ID统一编码的前十位编码。国标附录D中定义前8位为中心编码(由省级、市级、区级、基层编号组成,参照GB/T 2260-2007)
  74 + # 后两位为行业编码,定义参照附录D.3
  75 + # 3701020049标识山东济南历下区 信息行业接入
  76 + # [可选]
  77 + domain: 4401000000
  78 + # [可选]
  79 + id: 44010000001110008003
  80 + # [可选] 默认设备认证密码,后续扩展使用设备单独密码, 移除密码将不进行校验
  81 + password: 12345678
  82 + # 是否存储alarm信息
  83 + alarm: true
  84 +
  85 +#zlm 默认服务器配置
  86 +media:
  87 + id: guzijian1
  88 + # [必须修改] zlm服务器的内网IP
  89 + ip: ${my.ip}
  90 + # [必须修改] zlm服务器的http.port
  91 + http-port: 80
  92 + # [可选] 返回流地址时的ip,置空使用 media.ip
  93 + stream-ip: ${my.ip}
  94 + # [可选] wvp在国标信令中使用的ip,此ip为摄像机可以访问到的ip, 置空使用 media.ip
  95 + sdp-ip: ${my.ip}
  96 + # [可选] zlm服务器的hook所使用的IP, 默认使用sip.ip
  97 + hook-ip: ${my.ip}
  98 + # [可选] zlm服务器的http.sslport, 置空使用zlm配置文件配置
  99 + http-ssl-port: 443
  100 + # [可选] zlm服务器的hook.admin_params=secret
  101 + secret: 8KMYsD5ItKkHN1CIcPI9VeLa6u4S8deU
  102 + pushKey: 41db35390ddad33f83944f44b8b75ded
  103 + # 启用多端口模式, 多端口模式使用端口区分每路流,兼容性更好。 单端口使用流的ssrc区分, 点播超时建议使用多端口测试
  104 + rtp:
  105 + # [可选] 是否启用多端口模式, 开启后会在portRange范围内选择端口用于媒体流传输
  106 + enable: true
  107 + # [可选] 在此范围内选择端口用于媒体流传输, 必须提前在zlm上配置该属性,不然自动配置此属性可能不成功
  108 + port-range: 30000,35000 # 端口范围
  109 + # [可选] 国标级联在此范围内选择端口发送媒体流,
  110 + send-port-range: 30000,35000 # 端口范围
  111 + # 录像辅助服务, 部署此服务可以实现zlm录像的管理与下载, 0 表示不使用
  112 + record-assist-port: 18081
  113 +# [根据业务需求配置]
  114 +user-settings:
  115 + # 点播/录像回放 等待超时时间,单位:毫秒
  116 + play-timeout: 180000
  117 + # [可选] 自动点播, 使用固定流地址进行播放时,如果未点播则自动进行点播, 需要rtp.enable=true
  118 + auto-apply-play: true
  119 + # 设备/通道状态变化时发送消息
  120 + device-status-notify: true
  121 + # 推流直播是否录制
  122 + # record-push-live: true
  123 + # 是否开启接口鉴权
  124 + # interface-authentication: false
  125 + # 国标是否录制
  126 + # record-sip: true
  127 + # 等待音视频编码信息再返回, true: 可以根据编码选择合适的播放器,false: 可以更快点播
  128 +# wait-track: true
  129 +# [可选] 日志配置, 一般不需要改
  130 +logging:
  131 + config: classpath:logback-spring.xml
  132 +jt1078:
  133 + enable: true
  134 + port: 9998
  135 +
  136 +# MyBatis配置
  137 +mybatis-plus:
  138 + # 配置mapper的扫描,找到所有的mapper.xml映射文件
  139 + mapperLocations: classpath*:mapper/**/*Mapper.xml
  140 +# 配置mapper的扫描,找到所有的mapper.xml映射文件
  141 + #mapperLocations: classpath*:mapper/**/*Mapper.xml
  142 +tuohua:
  143 + bsth:
  144 + login:
  145 + pageURL: http://${my.ip}:9088/user/login/jCryptionKey
  146 + url: http://${my.ip}:9088/user/login
  147 +
  148 + userName: yuanxiaohu
  149 + password: Yxiaohu1.0
  150 + rest:
  151 + baseURL: http://10.10.2.20:9089/webservice/rest
  152 + password: bafb2b44a07a02e5e9912f42cd197423884116a8
  153 + tree:
  154 + url:
  155 + company: http://${my.ip}:9088/video/tree
  156 + car: http://${my.ip}:9088/video/tree/carNo/{0}
  157 + sim: http://${my.ip}:9088/video/tree/caNO/sim/{0}
  158 + wvp28181:
  159 + rtsp:
  160 + tcpPort: 11078
  161 + udpPort: 11078
  162 + historyTcpPort: 9999
  163 + historyUdpPort: 9999
  164 + ip : 61.169.120.202
  165 + jt1078:
  166 + ports: 30001,30001
  167 + port: 30000
  168 + httpPort: 3333
  169 + addPortVal: 0
  170 + pushURL: http://${my.ip}:3333/new/server/{pushKey}/{port}/{httpPort}
  171 + stopPushURL: http://${my.ip}:3333/stop/channel/{pushKey}/{port}/{httpPort}
  172 + url: http://192.168.168.241:8100/device/{0}
  173 + new_url: http://192.168.168.241:8100/device
  174 + historyListPort: 9205
  175 + history_upload: 9206
  176 + playHistoryPort: 9201
  177 + sendPort: 9101
  178 + stopSendPort: 9102
  179 + ws: ws://${my.ip}/schedule/{stream}.live.flv
  180 + wss: wss://${my.ip}:443/schedule/{stream}.live.flv
  181 + downloadFLV: http://${my.ip}/schedule/{stream}.live.flv
  182 + get:
  183 + #url: http://192.169.1.92:{port}/video/{stream}.flv
  184 + url: http://${my.ip}:3333/video/{stream}
  185 + playURL: /play/wasm/ws%3A%2F%2F{ip}%3A{port}%2Fschedule%2F{sim}-{channel}.live.flv%3FcallId%{publickey}
  186 +
  187 +ftp:
  188 + basePath: /wvp-local
  189 + host: 118.113.164.50
  190 + httpPath: ftp://118.113.164.50
  191 + filePathPrefix: http://118.113.164.50:10021/wvp-local
  192 + password: ftp@123
  193 + port: 10021
  194 + username: ftpadmin
  195 + retryTimes: 5
  196 + retryWaitTimes: 3000
  197 + # 视频过期时间 单位:天
  198 + expirationTime: 7
  199 + # 未上传成功超时时间 单位:秒
  200 + timeOut: 300
  201 +
  202 +forest:
  203 + backend: okhttp3 # 后端HTTP框架(默认为 okhttp3)
  204 + max-connections: 1000 # 连接池最大连接数(默认为 500)
  205 + max-route-connections: 500 # 每个路由的最大连接数(默认为 500)
  206 + max-request-queue-size: 100 # [自v1.5.22版本起可用] 最大请求等待队列大小
  207 + max-async-thread-size: 300 # [自v1.5.21版本起可用] 最大异步线程数
  208 + max-async-queue-size: 16 # [自v1.5.22版本起可用] 最大异步线程池队列大小
  209 + timeout: 3000 # [已不推荐使用] 请求超时时间,单位为毫秒(默认为 3000)
  210 + connect-timeout: 3000 # 连接超时时间,单位为毫秒(默认为 timeout)
  211 + read-timeout: 3000 # 数据读取超时时间,单位为毫秒(默认为 timeout)
  212 + max-retry-count: 0 # 请求失败后重试次数(默认为 0 次不重试)
  213 +# ssl-protocol: TLS # 单向验证的HTTPS的默认TLS协议(默认为 TLS)
  214 + log-enabled: true # 打开或关闭日志(默认为 true)
  215 + log-request: true # 打开/关闭Forest请求日志(默认为 true)
  216 + log-response-status: true # 打开/关闭Forest响应状态日志(默认为 true)
  217 + log-response-content: true # 打开/关闭Forest响应内容日志(默认为 false)
  218 +# async-mode: platform # [自v1.5.27版本起可用] 异步模式(默认为 platform)