Merge branch '1.0' of http://49.4.92.112:3000/root/ZHXY into 1.0
Former-commit-id: 60da561a66acadfd55b61b325fbf1509506a662bTangShanKaiPing
commit
7a588919b0
@ -1,8 +1,10 @@
|
|||||||
influxdb
|
portainer/data
|
||||||
mysql
|
mysql
|
||||||
|
influxdb
|
||||||
|
srs/objs
|
||||||
log
|
log
|
||||||
UserCenter
|
UserCenter
|
||||||
IoTCenter
|
IoTCenter
|
||||||
JobServer
|
JobServer
|
||||||
WebMVC
|
WebMVC
|
||||||
WebSPA
|
WebSPA
|
@ -1 +1,18 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
webmvc:
|
||||||
|
image: nginx:1.18
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
TZ: "Asia/Shanghai"
|
||||||
|
volumes:
|
||||||
|
- ../../../../projects/WebMVC/wwwroot:/usr/share/nginx/html
|
||||||
|
- ./log/webmvc:/var/log/nginx
|
||||||
|
webspa:
|
||||||
|
image: nginx:1.18
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
TZ: "Asia/Shanghai"
|
||||||
|
volumes:
|
||||||
|
- ../../../../projects/WebSPA/wwwroot:/usr/share/nginx/html
|
||||||
|
- ./log/webspa:/var/log/nginx
|
@ -0,0 +1,65 @@
|
|||||||
|
listen 1935;
|
||||||
|
max_connections 1000;
|
||||||
|
srs_log_tank file;
|
||||||
|
srs_log_file ./objs/log/srs.log;
|
||||||
|
daemon off;
|
||||||
|
http_api {
|
||||||
|
enabled on;
|
||||||
|
listen 1985;
|
||||||
|
raw_api {
|
||||||
|
enabled on;
|
||||||
|
allow_reload on;
|
||||||
|
allow_query on;
|
||||||
|
allow_update on;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
http_server {
|
||||||
|
enabled on;
|
||||||
|
listen 8080;
|
||||||
|
dir ./objs/nginx/html;
|
||||||
|
}
|
||||||
|
stats {
|
||||||
|
network 0;
|
||||||
|
disk sda sdb xvda xvdb;
|
||||||
|
}
|
||||||
|
vhost __defaultVhost__ {
|
||||||
|
transcode live {
|
||||||
|
enabled off;
|
||||||
|
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
|
||||||
|
engine snapshot {
|
||||||
|
enabled on;
|
||||||
|
iformat flv;
|
||||||
|
vfilter {
|
||||||
|
vf fps=1;
|
||||||
|
}
|
||||||
|
vcodec png;
|
||||||
|
vparams {
|
||||||
|
vframes 1;
|
||||||
|
}
|
||||||
|
acodec an;
|
||||||
|
oformat image2;
|
||||||
|
output ./objs/nginx/html/[app]/[stream].png;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
http_remux {
|
||||||
|
enabled on;
|
||||||
|
mount [vhost]/[app]/[stream].flv;
|
||||||
|
}
|
||||||
|
hls {
|
||||||
|
enabled on;
|
||||||
|
hls_fragment 3;
|
||||||
|
hls_window 10;
|
||||||
|
hls_path ./objs/nginx/html;
|
||||||
|
hls_m3u8_file [app]/[stream].m3u8;
|
||||||
|
hls_ts_file [app]/[stream]-[seq].ts;
|
||||||
|
}
|
||||||
|
dvr {
|
||||||
|
enabled on;
|
||||||
|
dvr_apply none;
|
||||||
|
dvr_path ./objs/nginx/html/video/[app].[stream].[timestamp].mp4;
|
||||||
|
}
|
||||||
|
http_hooks {
|
||||||
|
enabled on;
|
||||||
|
on_dvr http://iotcenter/IoTCenter/api/v1/Srs/OnDvr;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue