XtreamUI SSL
Start your broadcasting business with the most used IPTV Middleware Xtream-UI Panel
Xtream-UI Panel based on Powerfull Backbone of Codes Panel Pro. It is currently the once professional solution with wide range compatibility, unlimited scale and provide a lot of security features.
-point your domain to your server
-install lets encrypt certbot
sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install certbot python-certbot-nginx
-generate your ssl certificate with lets encrypt certbot,
sudo certbot certonly -d yourdomain.com --nginx
– Congratulations! Your certificate and chain (ssl cert bundle) have been saved at:
/etc/letsencrypt/live/PANELyourdomain.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/yourdomain.com/privkey.pem
(not: you have to renew lets encrypt certificates in every 90 days, use this command
sudo certbot renew
i compiled nginx with latest version, openssl 1.1.1d and http2 support, i didn’t test %100 but it is working fine. i am using this build currently.
nginx_updated.zip(5.02 MiB) Downloaded 165 times
backup your original file as nginx.bak and put this nginx file into /home/xtreamcodes/iptv_xtream_codes/nginx/sbin folder.
set 755 permission and xtreamcodes ownership for new nginx file.
edit: you may need to run start_services.sh after replacing nginx binary.
sudo /home/xtreamcodes/iptv_xtream_codes/start_services.sh
cp /home/xtreamcodes/iptv_xtream_codes/nginx/conf/nginx.conf /home/xtreamcodes/iptv_xtream_codes/nginx/conf/nginx.conf.bak
use this config file as templete,
nginx.conf.ssl_for_xtreamui.txt.zip(2 KiB) Downloaded 157 times
open conf file, replace ports, domain names, ssl cert file names and paths, read the # notes
and save it as;
/home/xtreamcodes/iptv_xtream_codes/nginx/conf/nginx.conf
set 755 permission and xtreamcodes ownership for new nginx.conf file.
test your conf file with;
sudo /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx -t
if it says successful, reload the nginx,
if it says test failed, look at the error message and fix your config and test again.
then reload the nginx;
sudo /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx -s reload
also check listening ports to make sure it is working;
sudo lsof -i -P -n | grep LISTEN
backup your nginx.conf