自用,有些步骤是一笔掠过的
首先在一台外网服务器上拉去镜像docker pull ngucandy/rtmp-hls:latest@sha256:c9c4477476544b8c338d19fe6f1cddaeeed970e0d747b388a58a00e930d771be
导出
将得到的tar包放在内网服务器
加载该镜像
修改nginx配置
worker_processes auto;
#error_log logs/error.log;
events {
worker_connections 1024;
}
# RTMP configuration
rtmp {
server {
listen 8897; # Listen on standard RTMP port
chunk_size 4000;
# ping 30s;
# notify_method get;
# This application is to accept incoming stream
application live {
live on; # Allows live input
}
}
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main