Someone figured it out! Good job!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
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.