Fetch the repository succeeded.
This action will force synchronization from rancedxk/monitor-rtsp-hls, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
log_format nginx_log_format '[$time_local] : [$http_x_forwarded_for] - [$status] - [$http_referer] - [$request] - [$http_user_agent]';
access_log logs/access.log nginx_log_format;
client_header_buffer_size 128k;
large_client_header_buffers 4 128k;
client_max_body_size 22m;
client_body_buffer_size 1024k;
sendfile on;
tcp_nopush on;
gzip on;
server{
listen 80;
#监控视频点播服务
location ~ /hls/(\w+)/index\.m3u8 {
proxy_ignore_client_abort on;
proxy_pass http://127.0.0.1:1934/$1;
proxy_redirect off;
}
#监控视频点播服务
location /hls {
types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
add_header Cache-Control no-cache;
#后端配置支持HTTP1.1,必须配
proxy_http_version 1.1;
proxy_set_header Connection "";
#存放hls切片的路径
alias '/path/to/hls';
autoindex on;
expires 24h;
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。