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

kadifica

Banned
Banned
Ext. Member
Joined
Jan 5, 2020
Messages
8
Reaction score
284
Points
59
Location
bosnia and herzegovina
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
 
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

grow

Extended Member
Ext. Member
Joined
Sep 24, 2019
Messages
14
Reaction score
62
Points
24
Location
spain
Hi @kadifica , thank you for the tutorial.

Sorry the silly question, all the lines and devices needs to change lines for https or the nginx configuration redirects http traffic to https?

i have also, the port 80 configurated, i need change to 443?

The LBs needs this configuration too?

Sorry again
 
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

diemgfc

Extended Member
Ext. Member
Joined
Apr 3, 2020
Messages
7
Reaction score
5
Points
14
Location
USA
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;
}
 
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

Rate

Extended Member
Ext. Member
Joined
Sep 18, 2019
Messages
38
Reaction score
121
Points
44
Location
Italy
Can someone put valid link for download,becouse is old from xtream-ui site.
 
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

malisa1980

Extended Member
Ext. Member
Joined
Oct 25, 2019
Messages
3
Reaction score
1
Points
11
Location
Europe
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 for your effort
 

GroupVox

Extended Member
Ext. Member
Joined
Oct 27, 2019
Messages
1
Reaction score
0
Points
1
Location
Brasil
Todo o crédito para [USER = 4165] @ emre1393 [/ USER] por este tutorial e pacotes. Eu apenas copiei aqui.


obrigado a [USER = 1322] @urgodfather [/ USER] por seu arquivo de configuração nginx, eu editei um pouco e adicionei pequenas coisas.

-ponte seu domínio para o seu servidor

-install permite criptografar certbot

[CÓDIGO] 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 [/ CODE]
-gerar seu certificado SSL com permite criptografar o certbot,
[CÓDIGO] sudo certbot certonly -d seudominio.com --nginx [/ CODE]
- Parabéns! Seu certificado e cadeia (pacote SSL cert) foram salvos em:
/etc/letsencrypt/live/yourdomain.com/fullchain.pem
Seu arquivo de chave foi salvo em:
/etc/letsencrypt/live/yourdomain.com/privkey.pem
(não: você tem que renovar permite criptografar certificados a cada 90 dias, use este comando;)
sudo certbot renovar

Compilei o nginx com a versão mais recente, suporte a openssl 1.1.1d e http2, não testei o% 100, mas está funcionando bem. estou usando esta compilação atualmente.
nginx_updated.zip (5.02 MiB) Baixado 165 vezes
faça backup de seu arquivo original como nginx.bak e coloque esse arquivo nginx na pasta / home / xtreamcodes / iptv_xtream_codes / nginx / sbin.
definir permissão 755 e propriedade xtreamcodes para o novo arquivo nginx.
editar: você pode precisar executar start_services.sh após substituir o binário nginx.
sudo /home/xtreamcodes/iptv_xtream_codes/start_services.sh

[CÓDIGO] cp /home/xtreamcodes/iptv_xtream_codes/nginx/conf/nginx.conf /home/xtreamcodes/iptv_xtream_codes/nginx/conf/nginx.conf.bak[/CODE]
use este arquivo de configuração como modelo,
nginx.conf.ssl_for_xtreamui.txt.zip (2 KiB) Baixado 157 vezes

abra o arquivo conf, substitua portas, nomes de domínio, nomes e caminhos de arquivos SSL cert, leia as # notas
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
something went wrong but I'll go over if the installation and the files need help from someone available
 
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
249
Points
54
Location
::1
@urgodfather Do you still indicate this tutorial as it is or over time recommend some changes to the way everything is done?
 
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

petxya

Basic Member
Basic Member
Joined
Apr 19, 2021
Messages
13
Reaction score
8
Points
14
Location
Hungary
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;
}

enjoy ;)
 
Last edited:

cesarkrespo

Banned
Banned
Ext. Member
Joined
Oct 2, 2019
Messages
378
Reaction score
4,756
Points
104
Location
In the world
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 :)
if the channel is in main it works on https without any kind of change.
just install ssl normally
 
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