feat: XLive 直播平台初始版本
多用户网页直播平台:OBS/FFmpeg 鉴权 RTMP 推流到 SRS,HLS 低延迟播放; Fastify 5 + Prisma + PostgreSQL + Redis 后端,Vue 3 前端,Docker Compose 部署。
This commit is contained in:
1 parent
5ef949fe07
commit
463dbb1566
73 files changed
+9593
No files matched your search
@@ -0,0 +1,53 @@
|
||||
listen 1935;
|
||||
max_connections 1000;
|
||||
daemon off;
|
||||
srs_log_tank console;
|
||||
|
||||
http_api {
|
||||
enabled on;
|
||||
listen 1985;
|
||||
}
|
||||
|
||||
http_server {
|
||||
enabled on;
|
||||
listen 8080;
|
||||
dir ./objs/nginx/html;
|
||||
}
|
||||
|
||||
vhost __defaultVhost__ {
|
||||
tcp_nodelay on;
|
||||
min_latency on;
|
||||
play {
|
||||
gop_cache off;
|
||||
queue_length 10;
|
||||
mw_latency 100;
|
||||
}
|
||||
publish {
|
||||
mr off;
|
||||
}
|
||||
hls {
|
||||
enabled on;
|
||||
hls_path ./objs/nginx/html;
|
||||
hls_fragment 1;
|
||||
hls_window 6;
|
||||
hls_cleanup on;
|
||||
hls_dispose 30;
|
||||
hls_m3u8_file live/[stream].m3u8;
|
||||
hls_ts_file live/[stream]-[seq].ts;
|
||||
}
|
||||
dvr {
|
||||
enabled on;
|
||||
dvr_path ./objs/nginx/html/[app]/replays/[stream].[timestamp].flv;
|
||||
dvr_plan session;
|
||||
}
|
||||
http_remux {
|
||||
enabled on;
|
||||
mount [vhost]/[app]/[stream].flv;
|
||||
}
|
||||
http_hooks {
|
||||
enabled on;
|
||||
on_publish http://api:3000/api/media/hooks?secret=__HOOK_SECRET__;
|
||||
on_unpublish http://api:3000/api/media/hooks?secret=__HOOK_SECRET__;
|
||||
on_dvr http://api:3000/api/media/hooks?secret=__HOOK_SECRET__;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
listen 1936;
|
||||
max_connections 1000;
|
||||
daemon off;
|
||||
srs_log_tank console;
|
||||
|
||||
http_server {
|
||||
enabled on;
|
||||
listen 8081;
|
||||
dir ./objs/nginx/html;
|
||||
}
|
||||
|
||||
vhost __defaultVhost__ {
|
||||
tcp_nodelay on;
|
||||
min_latency on;
|
||||
play {
|
||||
gop_cache off;
|
||||
queue_length 10;
|
||||
mw_latency 100;
|
||||
}
|
||||
publish {
|
||||
mr off;
|
||||
}
|
||||
hls {
|
||||
enabled on;
|
||||
hls_path ./objs/nginx/html;
|
||||
hls_fragment 1;
|
||||
hls_window 6;
|
||||
hls_cleanup on;
|
||||
hls_dispose 30;
|
||||
hls_m3u8_file live/[stream].m3u8;
|
||||
hls_ts_file live/[stream]-[seq].ts;
|
||||
}
|
||||
http_remux {
|
||||
enabled on;
|
||||
mount [vhost]/[app]/[stream].flv;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user