Note : Do Not Copy The Hash (#)
# sudo apt update && sudo apt upgrade -y
# sudo apt install nginx
# sudo add-apt-repository universe
# sudo apt install libnginx-mod-rtmp
# sudo nano /etc/nginx/nginx.conf or search for "etc/nginx/nginx.conf" with "Win SCP"
****Modify NGINX configuration and save (scroll to the bottom of the .conf file and add the following code)*****
rtmp {
server {
listen 1935;
chunk_size 4096;
application live {
live on;
record off;
}
}
}
# sudo systemctl restart nginx
Upload from OBS/etc
The URL to stream to will be:
# ifconfig
rtmp://[ip address]/live
The stream key can be "test", or anything else.
Bonus: bwm-ng
If you want to monitor traffic in a very simple way:
# sudo apt-get install bwm-ng
# bwm-ng
It neatly shows Rx/Tx on all interfaces.