多用户网页直播平台:OBS/FFmpeg 鉴权 RTMP 推流到 SRS,HLS 低延迟播放; Fastify 5 + Prisma + PostgreSQL + Redis 后端,Vue 3 前端,Docker Compose 部署。
38 lines
832 B
Plaintext
38 lines
832 B
Plaintext
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;
|
|
}
|
|
}
|