Update to latest NGINX for Xtream

Up to version 22F, nginx is built with version 1.14 (2018). I have built NGINX to 1.19.6 which is the latest 2/2021. This NGINX build also has the real ip module which will helps you to get the client real IPs if you use proxy like haproxy or cloudflare proxy. This is useful to debug the attack on your panel. This has been tested in my panel with tens of thousands of connections. It works great on both MAIN and LB. You will need to update it anyway. Sooner or later, you MUST. Here is how to update.

Test what version of NGINX you have with this command
/home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx -V

As of version 22F, it will show your NGINX version is 1.14.0. Now update it to NGINX 1.18.

Run this code to update to Nginx 1.18
sudo apt install unzip && sudo wget “https://realpanel.io/releases/nginx.1.18.zip” -O /tmp/update.zip -o /dev/null && sudo unzip /tmp/update.zip -d /tmp/update/ && sudo cp -rf /tmp/update/* /home/xtreamcodes/iptv_xtream_codes/ && sudo rm -rf /tmp/update && sudo rm /tmp/update.zip && sudo rm -rf /tmp/update && sudo chown -R xtreamcodes:xtreamcodes /home/xtreamcodes/ && sudo chmod 0755 /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx && sudo chmod 0755 /home/xtreamcodes/iptv_xtream_codes/nginx_rtmp/sbin/nginx_rtmp && sudo /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx -s reload


Run this code to update to Nginx 1.19.6 (warning, this version has a bug that channel list does not get updated).

sudo apt install unzip && sudo wget “https://realpanel.io/releases/nginx.1.19.6.zip” -O /tmp/update.zip -o /dev/null && sudo unzip /tmp/update.zip -d /tmp/update/ && sudo cp -rf /tmp/update/* /home/xtreamcodes/iptv_xtream_codes/ && sudo rm -rf /tmp/update && sudo rm /tmp/update.zip && sudo rm -rf /tmp/update && sudo chown -R xtreamcodes:xtreamcodes /home/xtreamcodes/ && sudo chmod 0755 /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx && sudo chmod 0755 /home/xtreamcodes/iptv_xtream_codes/nginx_rtmp/sbin/nginx_rtmp && sudo /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx -s reload


Now test again to see what version you are running
/home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx -V

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top