Announcement

Collapse
No announcement yet.

Perfect (SSL) Shoutcast Server

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Perfect (SSL) Shoutcast Server

    UPDATE:

    SINCE DNAS 2.6.1 external SSL proxy (nginx/apache) isn't required anymore!

    Now:
    - Create SSL certificates with Letsencrypt/Certbot
    - Enter Certificates in "sc_serv.conf" as below
    - Start/Restart DNAS.
    - Done!

    HTML Code:
    portbase = XXXX # Port to stream, can be 8000 or 443 for direct SSL connect without additional port.
    sslcertificatekeyfile = /etc/letsencrypt/live/MYWEBSITE.COM/privkey.pem
    sslcertificatefile = /etc/letsencrypt/live/MYWEBSITE.COM/fullchain.pem
    Last edited by HubuFM; 13 March 2023, 01:06.

  • #2
    You can also do SSL enabled reverse proxy to SHOUTcast with Apache if you already have it installed. Did it on my Windows machine.
    | Opus Audio Codec plugins 2.0 | Embedded Album Art | DiskWrite |
    | Save your playlist first! | Live voice-over | X-Fade 2.5 |
    | AterKast (Source DSP) | More of my stuff... |

    Comment


    • #3
      Originally Posted by thinktink View Post
      You can also do SSL enabled reverse proxy to SHOUTcast with Apache if you already have it installed. Did it on my Windows machine.
      Yes, but in my test nginx was faster (micro caching) and need less resources. But both methods will work.

      Comment


      • #4
        So much effort when SHOUTcast have to support native and free SSL

        Comment


        • #5
          In the meantime SHOUTcast offers this, at that time it was chargeable.

          Comment


          • #6
            Exactly what I need just a little problem and question:
            Can this all be done also with Ubuntu 20.04.5 LTS or must be Debian only?

            Comment


            • #7
              What is meant by "Renew-SSL Hooks​" and why is that needed or recommended? -Thank you

              Comment


              • #8
                Originally Posted by HG2S View Post
                What is meant by "Renew-SSL Hooks​" and why is that needed or recommended? -Thank you
                Hi,

                I updated first post, because it is now much easier.
                SSL certificates from LetsEncrypt are only valid for 3 months. So it need to be renewed.

                Comment


                • #9
                  SSL certificates from LetsEncrypt are only valid for 3 months. So it need to be renewed.
                  OK, you're referring to certificate renewal. That's fine. -Thanks

                  Comment


                  • #10
                    I updated first post, because it is now much easier.
                    In the original post you referred to:

                    Sometimes DNAS crying and need holidays.
                    Is that still the case with the newer version of Shoutcast? Any idea there?

                    Also:

                    If you expect more than 300 listeners it's highly recommend to increase your open file limits
                    Do you still recommend upping the ulimits?
                    Last edited by HG2S; 17 March 2023, 04:42.

                    Comment


                    • #11
                      ulimits should be increased if you expect more than 1,000 listeners at the same time. But most stations are below it, so you safe time.

                      Comment


                      • #12
                        portbase = XXXX # Port to stream, can be 8000 or 443 for direct SSL connect without additional port.
                        From what you're saying the port assignment is either 8000 or 443 (for https). Does the server automatically re-direct http requests to https?

                        Comment


                        • #13
                          Originally Posted by HG2S View Post

                          From what you're saying the port assignment is either 8000 or 443 (for https). Does the server automatically re-direct http requests to https?
                          No, you can use nginx/apache for port 80 to redirect to 443 with '301'. nginx/apache should run on port 80 and reachable for certbot/LetsEncrypt.

                          Comment


                          • #14
                            This might be of interest to future readers:



                            alternateports : Specify additional ports which listeners will be able to connect to the server [Default = <no value>]

                            This is specified as a comma separated string e.g. alternateports=80,8080 and will only provide listener responses i.e. none of the admin or /index.html pages will respond on these ports, just the audio stream.

                            This is provided as a way to help improve connectivity to any of the streams provided from the server for cases where external firewalls are blocking listener access to the stream on the main port.​

                            Comment

                            Working...
                            X
                            😀
                            🥰
                            🤢
                            😎
                            😡
                            👍
                            👎