Update Setting up an HLS Broadcast server with NGINX
parent
8a62aa5bc7
commit
43b2987bcb
|
|
@ -10,8 +10,7 @@
|
||||||
The first part of this server config handles ingesting the raw RTMP datastream and converting to a series of files which can be fetched via web request, as the HLS protocol perscribes.
|
The first part of this server config handles ingesting the raw RTMP datastream and converting to a series of files which can be fetched via web request, as the HLS protocol perscribes.
|
||||||
1. Edit open `/etc/nginx/nginx.conf`
|
1. Edit open `/etc/nginx/nginx.conf`
|
||||||
2. Add the following block to your `nginx.conf`:
|
2. Add the following block to your `nginx.conf`:
|
||||||
<pre><code>
|
<pre><code>rtmp {
|
||||||
rtmp {
|
|
||||||
server {
|
server {
|
||||||
listen 1935;
|
listen 1935;
|
||||||
chunk_size 4096;
|
chunk_size 4096;
|
||||||
|
|
@ -31,8 +30,7 @@ rtmp {
|
||||||
hls_playlist_length 10s;
|
hls_playlist_length 10s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}</code></pre>
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
## Web Server Configuration
|
## Web Server Configuration
|
||||||
This part of the configuration handles setting up the web server which serves the files that make up the HLS stream.
|
This part of the configuration handles setting up the web server which serves the files that make up the HLS stream.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue