Nginx RTMP Ubuntu 22.04
Revision as of 20:03, 14 December 2023 by Onnowpurbo (talk | contribs)
Install nginx
sudo apt update sudo apt install nginx
Cek
systemctl status nginx
Install Nginx RTMP
sudo apt update sudo apt install libnginx-mod-rtmp
Edit nginx.conf
sudo nano /etc/nginx/nginx.conf
Contoh,
. . .
rtmp {
server {
listen 1935;
chunk_size 4096;
allow publish 127.0.0.1;
deny publish all;
application live {
live on;
record off;
}
}
}
Reload
sudo systemctl reload nginx.service sudo systemctl status nginx.service