Author Topic: how to use SSL on shoutcast ports?  (Read 4318 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
how to use SSL on shoutcast ports?
« on: March 03, 2022, 07:13:44 PM »
how to use SSL on shoutcast ports?

I access my server normally through https://servidor.giannimarinho.com:2031 but I can't access the shoutcast ports with my hostname and SSL. example: https://servidor.giannimarinho.com:15000

support told me that i have to release port 15000 in the CWP firewall but it doesn't work even with the firewall turned off.

how do i add a port range in the CWP firewall?
example: ports 15000 to 16000
can anyone help me?

Offline
****
Re: how to use SSL on shoutcast ports?
« Reply #1 on: March 03, 2022, 08:41:26 PM »
Use Nginx as a proxy:

Code: [Select]
server {

    listen <sh ip>:<a port for ssl> ssl;
    server_name <radio.yoururl>
    ssl_certificate <certificate file>;
    ssl_certificate_key <certificate key>;
    ssl_session_cache builtin:1000 shared:SSL:10m;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
    ssl_prefer_server_ciphers on;


    location / {

            proxy_set_header Host $http_host;
            proxy_set_header X-NginX-Proxy true;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

            proxy_pass http://<sh_ip>:<sh_port>;
    }

}

Apache can also act as a proxy with mod_proxy, but I've never set it up.  https://www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension
« Last Edit: March 03, 2022, 08:45:46 PM by rcschaff »
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: how to use SSL on shoutcast ports?
« Reply #2 on: November 01, 2022, 03:56:10 PM »
hi, Where should I put that configuration, could you tell me the steps, thanks :D :D :D