diff --git a/Setting-up-an-HLS-Broadcast-server-with-NGINX.md b/Setting-up-an-HLS-Broadcast-server-with-NGINX.md index 6619758..f713217 100644 --- a/Setting-up-an-HLS-Broadcast-server-with-NGINX.md +++ b/Setting-up-an-HLS-Broadcast-server-with-NGINX.md @@ -1,5 +1,18 @@ ## Step-by-step procedure for Setting up an HLS Broadcast server with NGINX -## Installation -1. Install nginx and it's associated RTMP module `sudo apt install nginx libnginx-mod-rtmp` \ No newline at end of file +## Installation & Prep +1. Spin up a new Debian 12 box w/ a properly configured UFW firewall. This is out of scope for this guide... +2. Install nginx and it's associated RTMP module `sudo apt install nginx libnginx-mod-rtmp` +3. Create a location to store your hls stream, as such `mkdir /srv/live && chown www-data:www-data /srv/live` + +## RTMP Server Configuration +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` +2.Add the following block to your `nginx.conf`: + + +## Web Server Configuration +This part of the configuration handles setting up the web server which serves the files that make up the HLS stream. +1.Edit `/etc/nginx/sites-available/default` or create a new site config +^Remember to create a symlink and move/delete the default if you create a new file! \ No newline at end of file