Welcome to World of IPTV

With

+23k members
+11k threads
+106k posts

we are the most popular IPTV community on the web. 

IMPORTANT NOTE:
WE HAVE RECENTLY NOTICED THAT TOO MANY DOUBLE FAKE ACCOUNTS ARE CREATED IN THE PAST.
TO PREVENT THIS ISSUE THE DECISION WAS MADE THAT IN THE FUTURE A ANNUALLY FEE 20 EURO WILL BE RAISED FOR NEW MEMBERSHIPS.

Join now to the World of IPTV

Forum Rules

Before you start, check out the forum rules first

Account upgrade

Upgrade your account to get access to full features

Advertising

Would you like to place your advertisement with us ?

Resources Manager

Hundreds of IPTV scripts and apps are available for download

Tutorial tutorial: how to use ssl on the panel

urgodfather

Banned
Banned
Ext. Member
Joined
Sep 22, 2019
Messages
2,098
Reaction score
5,928
Points
124
Location
neither here, nor there
Here's what I did to make SSL work both for playback and admin area.
I can confirm it is working on MAG520. Connect your MAG device to portal on https://EXAMPLE.COM:25463/c

You also need to update your xtream-ui databese with the following line:

UPDATE xtream_iptvpro.settings SET use_https='["1", "2", "3"]' WHERE id='1';

Modify nginx.conf as follows for SSL playback after installing letsencrypt certificate:

/home/xtreamcodes/iptv_xtream_codes/nginx/conf# nano nginx.conf

server {
listen 25461;listen 25463 ssl;
ssl_certificate /etc/letsencrypt/live/EXAMPLE.COM/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/EXAMPLE.COM/privkey.pem;

ssl_protocols SSLv3 TLSv1.1 TLSv1.2;
index index.php index.html index.htm;
root /home/xtreamcodes/iptv_xtream_codes/wwwdir/;
server_name EXAMPLE.COM;
server_tokens off;
chunked_transfer_encoding off;


Scroll somewhat lower, and modify "server" as follows for admin area SSL

server {
listen 25500;listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/EXAMPLE.COMu/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/EXAMPLE.COM/privkey.pem;

index index.php index.html index.htm;
root /home/xtreamcodes/iptv_xtream_codes/admin/;
server_name EXAMPLE.COM;

include /etc/letsencrypt/options-ssl-nginx.conf;

if ($scheme != "https") {
return 301 https://$host$request_uri;
}


Hit a Like if it helps you :)
Someone figured it out! Good job!

Don’t ask for likes though. If you want them as a requirement, then hide some of the context in the thanks BBcode. We have a tutorial on how to do that. Fix the code sections while you are at it. You have an edit button to make your corrections.
 

LurgogR

Extended Member
Ext. Member
Joined
May 9, 2020
Messages
62
Reaction score
59
Points
29
Location
usa
Hello I thank you for the Tutorial I would like to know if it would be possible to make so that the post is a little cleaner because with certain comment it is more what we must do and if possible to add the part of configuration of cloudflare thanks
 

code64

Extended Member
Ext. Member
Joined
Sep 21, 2019
Messages
127
Reaction score
298
Points
74
Location
Algiers
Thank's for this post but smarters for windows and mac os don't work with ssl m3u link i face big issue with smarters for windows is their any alternative to use ssl with other windows apps exept vlc

Thank you
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

urgodfather

Banned
Banned
Ext. Member
Joined
Sep 22, 2019
Messages
2,098
Reaction score
5,928
Points
124
Location
neither here, nor there
Thank's for this post but smarters for windows and mac os don't work with ssl m3u link i face big issue with smarters for windows is their any alternative to use ssl with other windows apps exept vlc

Thank you
that has nothing to do with these instructions. your issue is a smarters issue. also, there is no purpose to have windows or mac os application. bluestacks or memu or some other android emulator OR set up webplayer. clients can also visit your domain just like how to pull m3u and use built in player.
 

code64

Extended Member
Ext. Member
Joined
Sep 21, 2019
Messages
127
Reaction score
298
Points
74
Location
Algiers
that has nothing to do with these instructions. your issue is a smarters issue. also, there is no purpose to have windows or mac os application. bluestacks or memu or some other android emulator OR set up webplayer. clients can also visit your domain just like how to pull m3u and use built in player.
No quote
Thank you @urgodfather that's will i do or return to http mode :) with your experience is it better to use https or http with xtream ui or xtream code in general ?

Great thank's in advance .
 

SubZer0

Extended Member
Ext. Member
Joined
Oct 4, 2019
Messages
134
Reaction score
240
Points
54
Location
USA
URGODFATHER is actually a GOD. We are not worthy!! He has been a major help and truly a blessing.
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

go13

Extended Member
Ext. Member
Joined
Apr 29, 2020
Messages
53
Reaction score
136
Points
44
Location
es
Someone figured it out! Good job!

Don’t ask for likes though. If you want them as a requirement, then hide some of the context in the thanks BBcode. We have a tutorial on how to do that. Fix the code sections while you are at it. You have an edit button to make your corrections.
how can we use the domain name on the main as well as the lb? to be able to read everything in https? someone have a tutorial please?
 

mangosa

Extended Member
Ext. Member
Joined
Oct 22, 2019
Messages
93
Reaction score
48
Points
29
Location
netherlands
I did everything according to the instructions, I got the picture in m3u,
but I don't know where I'm wrong, I can't log in to https, it still goes with http ??

server {
listen 25500;listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/EXAMPLE.COMu/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/EXAMPLE.COM/privkey.pem;

index index.php index.html index.htm;
root /home/xtreamcodes/iptv_xtream_codes/admin/;
server_name EXAMPLE.COM;

include /etc/letsencrypt/options-ssl-nginx.conf;

if ($scheme != "https") {
return 301 https://$host$request_uri;
}
 

peezy

Extended Member
Ext. Member
Joined
Oct 2, 2019
Messages
56
Reaction score
255
Points
44
Location
The Woods
Had fun setting this up..not sure where the credit actually belongs but franks ?
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

thugthug

Basic Member
Basic Member
Joined
Jul 23, 2021
Messages
152
Reaction score
248
Points
54
Location
::1
thanks i love that.
for redirections on nginx please add this line into nginx config :

# HTTP to HTTPS redirections
location / {
proxy_pass http://server;
return 301 https://$host$request_uri;
}

I'm a layman on the subject, what would be the difference between your redirect method and that of the "mangosa"?

include /etc/letsencrypt/options-ssl-nginx.conf;

if ($scheme != "https") {
return 301 https://$host$request_uri;
}
 

thugthug

Basic Member
Basic Member
Joined
Jul 23, 2021
Messages
152
Reaction score
248
Points
54
Location
::1
Okay, after a long time I managed to make my servers all accept and run SSL, I got a B rating, not bad.

However, when I go into settings and enable "Main or Loadbalance Https" for all my servers that I installed SSL on, they simply don't reproduce anything.

When I disable it, and still make connections via https, it works perfectly.

Does anyone have an idea?

piBEKyB.png
 

thugthug

Basic Member
Basic Member
Joined
Jul 23, 2021
Messages
152
Reaction score
248
Points
54
Location
::1
My own update:

I discovered that when adding some server in "Main or Loadbalance Https", it kind of tries to do an https broadcast of the channels located on that server.

In this case, the channels I have don't accept ssl and that's why it doesn't play after being added the server in the option "Main or Loadbalance Https".

But my intention was that, it came to my server without ssl and from there, the server took it to the client with ssl, but I still can't find a line of reasoning for that to happen.
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

juliozapata

Basic Member
Basic Member
Joined
Apr 12, 2022
Messages
3
Reaction score
0
Points
1
Location
US
All credit to @emre1393 for this tutorial and packages. I just copied it here.


thanks to @urgodfather for his nginx config file, i edited a bit and add small things.

-point your domain to your server

-install lets encrypt certbot

PHP:
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,
PHP:
sudo certbot certonly -d yourdomain.com --nginx
- Congratulations! Your certificate and chain (ssl cert bundle) have been saved at:
/etc/letsencrypt/live/yourdomain.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

PHP:
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;
PHP:
/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;
PHP:
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;
PHP:
sudo /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx -s reload
also check listening ports to make sure it is working;
PHP:
sudo lsof -i -P -n | grep LISTEN

backup your nginx.conf
thank you very much
 

Duda2021

Basic Member
Basic Member
Joined
Oct 14, 2021
Messages
6
Reaction score
8
Points
14
Location
lisboa
good friends someone has the link of this file so I can configure my panel or can help me configure my xtream panel with ssl to avoid isp nginx_updated.zip
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

mihaiantonescu93

Basic Member
Basic Member
Joined
Feb 21, 2021
Messages
3
Reaction score
0
Points
1
Location
Bucuresti
I don't know if I did all the steps correctly, the added domain does not connect to the xtream ui panel
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

jibran84pk

Extended Member
Ext. Member
Joined
Jan 27, 2020
Messages
24
Reaction score
8
Points
14
Location
Pakistan
BRAVO MAN BRAVO
I tried this method in 2024, on UBUNTU 20
just little bit changes were needed

sudo apt-get update`
`sudo apt-get install certbot python-certbot-nginx`

INSTEAD
sudo apt-get update`
`sudo apt-get install certbot python3-certbot-nginx`

Remaining same procedure
 
shape1
shape2
shape3
shape4
shape5
shape6
Top
AdBlock Detected

We know, ad-blocking software do a great job at blocking ads. But our site is sponsored by advertising. 

For the best possible site experience please take a moment to disable your AdBlocker.
You can create a Account with us or if you already have account, you can prefer an Account Upgrade.

I've Disabled AdBlock