Commit f36eb7ebebf5b4bbe79d27636d4a4ddb49067273

Authored by 648540858
1 parent 84c78be9

添加打包文件

src/main/resources/all-application.yml
@@ -34,6 +34,19 @@ spring: @@ -34,6 +34,19 @@ spring:
34 poolMaxWait: 5 34 poolMaxWait: 5
35 # [必选] jdbc数据库配置 35 # [必选] jdbc数据库配置
36 datasource: 36 datasource:
  37 + # kingbase配置
  38 + # type: com.zaxxer.hikari.HikariDataSource
  39 + # driver-class-name: com.kingbase8.Driver
  40 + # url: jdbc:kingbase8://192.168.1.55:54321/wvp?useUnicode=true&characterEncoding=utf8
  41 + # username: system
  42 + # password: system
  43 + # postgresql配置
  44 + # type: com.zaxxer.hikari.HikariDataSource
  45 + # driver-class-name: org.postgresql.Driver
  46 + # url: jdbc:postgresql://192.168.1.242:3306/242wvp
  47 + # username: root
  48 + # password: SYceshizu1234
  49 + # mysql配置
37 type: com.zaxxer.hikari.HikariDataSource 50 type: com.zaxxer.hikari.HikariDataSource
38 driver-class-name: com.mysql.cj.jdbc.Driver 51 driver-class-name: com.mysql.cj.jdbc.Driver
39 url: jdbc:mysql://127.0.0.1:3306/wvp2?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true&serverTimezone=PRC&useSSL=false&allowMultiQueries=true 52 url: jdbc:mysql://127.0.0.1:3306/wvp2?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true&serverTimezone=PRC&useSSL=false&allowMultiQueries=true
打包/config/assist-application.yml 0 → 100755
  1 +spring:
  2 + # REDIS数据库配置
  3 + redis:
  4 + # [可选] 超时时间
  5 + timeout: 10000
  6 + # 以下为单机配置
  7 + # [必须修改] Redis服务器IP, REDIS安装在本机的,使用127.0.0.1
  8 + host: 127.0.0.1
  9 + # [必须修改] 端口号
  10 + port: 6379
  11 + # [可选] 数据库 DB
  12 + database: 1
  13 + # [可选] 访问密码,若你的redis服务器没有设置密码,就不需要用密码去连接
  14 + password: adminadmin123.
  15 + # 以下为集群配置
  16 +# cluster:
  17 +# nodes: 192.168.1.242:7001
  18 +# password: 4767cb971b40a1300fa09b7f87b09d1c
  19 +
  20 +# [可选] WVP监听的HTTP端口, 网页和接口调用都是这个端口
  21 +server:
  22 + port: 18081
  23 + # [可选] HTTPS配置, 默认不开启
  24 + ssl:
  25 + # [可选] 是否开启HTTPS访问
  26 + enabled: false
  27 + # [可选] 证书文件路径,放置在resource/目录下即可,修改xxx为文件名
  28 + key-store: classpath:xxx.jks
  29 + # [可选] 证书密码
  30 + key-password: password
  31 + # [可选] 证书类型, 默认为jks,根据实际修改
  32 + key-store-type: JKS
  33 +
  34 +# [根据业务需求配置]
  35 +userSettings:
  36 + # [必选 ] 服务ID
  37 + id: 334533
  38 + # [可选 ] 录像下载合成临时文件保存时长, 不配置默认取值recordDay(单位: 天)每天晚12点自动对过期文件执行清理
  39 + # recordTempDay: 7
  40 + # [必选 ] ffmpeg路径
  41 + ffmpeg: lib/ffmpeg
  42 + # [必选 ] ffprobe路径, 一般安装ffmpeg就会自带, 一般跟ffmpeg在同一目录,用于查询文件的信息
  43 + ffprobe: lib/ffprobe
  44 + # [可选 ] 限制 ffmpeg 合并文件使用的线程数,间接限制cpu使用率, 默认2 限制到50%
  45 + threads: 2
  46 +
  47 +swagger-ui:
  48 + enabled: true
  49 +# [可选] 日志配置, 一般不需要改
  50 +logging:
  51 + file:
  52 + name: logs/wvp.log
  53 + max-history: 30
  54 + max-size: 10MB
  55 + total-size-cap: 300MB
  56 + level:
  57 + root: WARN
  58 + top:
  59 + panll:
  60 + assist: info
  61 + net:
  62 + bramp:
  63 + ffmpeg: error
打包/config/config.ini 0 → 100755
  1 +; auto-generated by mINI class {
  2 +
  3 +[api]
  4 +apiDebug=1
  5 +defaultSnap=./www/logo.png
  6 +secret=034523TF8yT83wh5Wvz73f7
  7 +snapRoot=./www/snap/
  8 +
  9 +[cluster]
  10 +origin_url=
  11 +retry_count=3
  12 +timeout_sec=15
  13 +
  14 +[ffmpeg]
  15 +bin=/usr/bin/ffmpeg
  16 +cmd=%s -re -i %s -c:a aac -strict -2 -ar 44100 -ab 48k -c:v libx264 -f flv %s
  17 +log=./ffmpeg/ffmpeg.log
  18 +restart_sec=0
  19 +snap=%s -i %s -y -f mjpeg -t 0.001 %s
  20 +
  21 +[general]
  22 +check_nvidia_dev=1
  23 +enableVhost=0
  24 +enable_ffmpeg_log=0
  25 +flowThreshold=1024
  26 +maxStreamWaitMS=15000
  27 +mediaServerId=GQ3TF8yT83wh5Wvz
  28 +mergeWriteMS=0
  29 +resetWhenRePlay=1
  30 +streamNoneReaderDelayMS=15000
  31 +unready_frame_cache=100
  32 +wait_add_track_ms=3000
  33 +wait_track_ready_ms=10000
  34 +
  35 +[hls]
  36 +broadcastRecordTs=0
  37 +deleteDelaySec=10
  38 +fileBufSize=65536
  39 +segDur=2
  40 +segKeep=0
  41 +segNum=3
  42 +segRetain=5
  43 +
  44 +[hook]
  45 +admin_params=secret=034523TF8yT83wh5Wvz73f7
  46 +alive_interval=30.000000
  47 +enable=1
  48 +on_flow_report=
  49 +on_http_access=
  50 +on_play=http://192.168.1.3:18082/index/hook/on_play
  51 +on_publish=http://192.168.1.3:18082/index/hook/on_publish
  52 +on_record_mp4=
  53 +on_record_ts=
  54 +on_rtp_server_timeout=http://192.168.1.3:18082/index/hook/on_rtp_server_timeout
  55 +on_rtsp_auth=
  56 +on_rtsp_realm=
  57 +on_send_rtp_stopped=http://192.168.1.3:18082/index/hook/on_send_rtp_stopped
  58 +on_server_keepalive=http://192.168.1.3:18082/index/hook/on_server_keepalive
  59 +on_server_started=http://192.168.1.3:18082/index/hook/on_server_started
  60 +on_shell_login=
  61 +on_stream_changed=http://192.168.1.3:18082/index/hook/on_stream_changed
  62 +on_stream_none_reader=http://192.168.1.3:18082/index/hook/on_stream_none_reader
  63 +on_stream_not_found=http://192.168.1.3:18082/index/hook/on_stream_not_found
  64 +retry=1
  65 +retry_delay=3.000000
  66 +timeoutSec=20
  67 +
  68 +[http]
  69 +charSet=utf-8
  70 +dirMenu=1
  71 +forbidCacheSuffix=
  72 +forwarded_ip_header=
  73 +keepAliveSecond=15
  74 +maxReqSize=40960
  75 +notFound=<html><head><title>404 Not Found</title></head><body bgcolor="white"><center><h1>您访问的资源不存在!</h1></center><hr><center>ZLMediaKit(git hash:f6cba98/2023-02-06T14:18:21+08:00,branch:master,build time:2023-02-07T10:51:47)</center></body></html>
  76 +port=6080
  77 +rootPath=./www
  78 +sendBufSize=65536
  79 +sslport=16080
  80 +virtualPath=
  81 +
  82 +[multicast]
  83 +addrMax=239.255.255.255
  84 +addrMin=239.0.0.0
  85 +udpTTL=64
  86 +
  87 +[protocol]
  88 +add_mute_audio=1
  89 +continue_push_ms=3000
  90 +enable_audio=1
  91 +enable_fmp4=1
  92 +enable_hls=1
  93 +enable_mp4=0
  94 +enable_rtmp=1
  95 +enable_rtsp=1
  96 +enable_ts=1
  97 +fmp4_demand=0
  98 +hls_demand=0
  99 +hls_save_path=./www
  100 +modify_stamp=0
  101 +mp4_as_player=0
  102 +mp4_max_second=3600
  103 +mp4_save_path=./www
  104 +rtmp_demand=0
  105 +rtsp_demand=0
  106 +ts_demand=0
  107 +
  108 +[record]
  109 +appName=record
  110 +fastStart=0
  111 +fileBufSize=65536
  112 +fileRepeat=0
  113 +sampleMS=500
  114 +
  115 +[rtc]
  116 +externIP=192.168.1.3
  117 +port=8000
  118 +preferredCodecA=PCMA,PCMU,opus,mpeg4-generic
  119 +preferredCodecV=H264,H265,AV1,VP9,VP8
  120 +rembBitRate=0
  121 +tcpPort=8000
  122 +timeoutSec=15
  123 +
  124 +[rtmp]
  125 +handshakeSecond=15
  126 +keepAliveSecond=15
  127 +modifyStamp=0
  128 +port=1935
  129 +sslport=19350
  130 +
  131 +[rtp]
  132 +audioMtuSize=600
  133 +lowLatency=0
  134 +rtpMaxSize=10
  135 +videoMtuSize=1400
  136 +
  137 +[rtp_proxy]
  138 +dumpDir=
  139 +h264_pt=98
  140 +h265_pt=99
  141 +opus_pt=100
  142 +port=10000
  143 +port_range=40000-40500
  144 +ps_pt=96
  145 +timeoutSec=15
  146 +
  147 +[rtsp]
  148 +authBasic=0
  149 +directProxy=1
  150 +handshakeSecond=15
  151 +keepAliveSecond=15
  152 +lowLatency=0
  153 +port=10554
  154 +sslport=
  155 +
  156 +[shell]
  157 +maxReqSize=1024
  158 +port=9000
  159 +
  160 +[srt]
  161 +latencyMul=4
  162 +pktBufSize=8192
  163 +port=9000
  164 +timeoutSec=5
  165 +
  166 +; } ---
打包/config/wvp-application.yml 0 → 100755
  1 +spring:
  2 + # [可选]上传文件大小限制
  3 + servlet:
  4 + multipart:
  5 + max-file-size: 10MB
  6 + max-request-size: 100MB
  7 + # REDIS数据库配置
  8 + redis:
  9 + # [可选] 超时时间
  10 + timeout: 10000
  11 + # 以下为单机配置
  12 + # [必须修改] Redis服务器IP, REDIS安装在本机的,使用127.0.0.1
  13 + host: 127.0.0.1
  14 + # # [必须修改] 端口号
  15 + port: 6379
  16 + # [可选] 数据库 DB
  17 + database: 1
  18 + # [可选] 访问密码,若你的redis服务器没有设置密码,就不需要用密码去连接
  19 + password: adminadmin123.
  20 + # 以下为集群配置
  21 +# cluster:
  22 +# nodes: 192.168.1.66:9001,192.168.1.66:9002,192.168.1.66:9003,192.168.1.66:9004,192.168.1.66:9005,192.168.1.66:9006
  23 +# password: adminadmin123.
  24 + # [可选] jdbc数据库配置, 项目使用sqlite作为数据库,一般不需要配置
  25 + # mysql数据源
  26 + datasource:
  27 + # kingbase配置
  28 +# type: com.zaxxer.hikari.HikariDataSource
  29 +# driver-class-name: com.kingbase8.Driver
  30 +# url: jdbc:kingbase8://192.168.1.55:54321/wvp?useUnicode=true&characterEncoding=utf8
  31 +# username: system
  32 +# password: system
  33 + # postgresql配置
  34 +# type: com.zaxxer.hikari.HikariDataSource
  35 +# driver-class-name: org.postgresql.Driver
  36 +# url: jdbc:postgresql://192.168.1.242:3306/242wvp
  37 +# username: root
  38 +# password: SYceshizu1234
  39 + # mysql配置
  40 + type: com.zaxxer.hikari.HikariDataSource
  41 + driver-class-name: com.mysql.cj.jdbc.Driver
  42 + url: jdbc:mysql://192.168.1.242:3306/242wvp?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true&serverTimezone=PRC&useSSL=false&allowMultiQueries=true&allowPublicKeyRetrieval=true
  43 + username: root
  44 + password: SYceshizu1234
  45 +
  46 +
  47 +# kingbase 和 postgresql需要开启这个配置
  48 +#pagehelper:
  49 +# helper-dialect: postgresql
  50 +
  51 +#[可选] WVP监听的HTTP端口, 网页和接口调用都是这个端口
  52 +server:
  53 + port: 18080
  54 +
  55 +# 作为28181服务器的配置
  56 +sip:
  57 + # [必须修改] 本机的IP
  58 + ip: 192.168.1.3
  59 + # [可选] 28181服务监听的端口
  60 + port: 15060
  61 + # 根据国标6.1.2中规定,domain宜采用ID统一编码的前十位编码。国标附录D中定义前8位为中心编码(由省级、市级、区级、基层编号组成,参照GB/T 2260-2007)
  62 + # 后两位为行业编码,定义参照附录D.3
  63 + # 3701020049标识山东济南历下区 信息行业接入
  64 + # [可选]
  65 + domain: 3402000001
  66 + # [可选]
  67 + id: 34020000013000000001
  68 + # [可选] 默认设备认证密码,后续扩展使用设备单独密码, 移除密码将不进行校验
  69 + password: 12345678
  70 +
  71 +#zlm 默认服务器配置
  72 +media:
  73 + # [必须修改] zlm服务器唯一id,用于触发hook时区别是哪台服务器,general.mediaServerId
  74 + id: GQ3TF8yT83wh5Wvz
  75 + # [必须修改] zlm服务器的内网IP
  76 + ip: 192.168.1.3
  77 + # [必须修改] zlm服务器的http.port
  78 + http-port: 6080
  79 + # [可选] zlm服务器的hook.admin_params=secret
  80 + secret: 034523TF8yT83wh5Wvz73f7
  81 + # 启用多端口模式, 多端口模式使用端口区分每路流,兼容性更好。 单端口使用流的ssrc区分, 点播超时建议使用多端口测试
  82 + rtp:
  83 + # [可选] 是否启用多端口模式, 开启后会在portRange范围内选择端口用于媒体流传输
  84 + enable: true
  85 + # [可选] 在此范围内选择端口用于媒体流传输,
  86 + port-range: 30000,30500 # 端口范围
  87 + # [可选] 国标级联在此范围内选择端口发送媒体流,请不要与收流端口范围重合
  88 + send-port-range: 50502,50506 # 端口范围
  89 + # 录像辅助服务, 部署此服务可以实现zlm录像的管理与下载, 0 表示不使用
  90 + record-assist-port: 18089
  91 + # 录像路径
  92 + record-path: ./www/record
  93 + # 录像保存时长
  94 + record-day: 7
  95 +# [可选] 日志配置, 一般不需要改
  96 +logging:
  97 + config: classpath:logback-spring-local.xml
  98 +
  99 +# [根据业务需求配置]
  100 +user-settings:
  101 + server-id: 741266
  102 + auto-apply-play: true
  103 + interface-authentication: true
  104 + interface-authentication-excludes:
  105 + - /api/v1/**
  106 + - /api/media/stream_info_by_app_and_stream
  107 + - /api/v1/control/ptz
  108 + - /api/cloud/record/*/**
  109 + # 推流直播是否录制
  110 + record-push-live: true
  111 + # 国标是否录制
  112 + record-sip: false
  113 + # 使用推流状态作为推流通道状态
  114 + use-pushing-as-status: false
  115 + # 设备上线时是否自动同步通道
  116 + sync-channel-on-device-online: false
  117 + # 消息通道功能-缺少国标ID是否给所有上级发送消息
  118 + send-to-platforms-when-id-lost: false
  119 +
  120 +
数据库/更新-mysql-2.6.9.sql
@@ -60,8 +60,7 @@ alter table device @@ -60,8 +60,7 @@ alter table device
60 change online on_line varchar(50) null; 60 change online on_line varchar(50) null;
61 61
62 alter table device 62 alter table device
63 - add COLUMN switch_primary_sub_stream bool default false comment '开启主子码流切换的开关(0-不开启,1-开启)现在已知支持设备为 大华、TP——LINK全系设备'  
64 - 63 + add COLUMN switch_primary_sub_stream bool default false comment '开启主子码流切换的开关(0-不开启,1-开启)现在已知支持设备为 大华、TP——LINK全系设备';
65 64
66 alter table device_alarm 65 alter table device_alarm
67 change deviceId device_id varchar(50) not null; 66 change deviceId device_id varchar(50) not null;