[Icecast] Wrong url's from ezstream/icecast

Thomas Jensen lianergoist at vongriffen.dk
Mon Dec 4 08:57:53 UTC 2023


I run two streams from ezstream via Icecast2 - one over http and one
over https.

In the ezstream config file I have defined two servers (http and https)
and the two streams point to the different servers (by their names).

But, if I go to the following two url's, Icecast report same (http-)
'streaming url' for both:

https://radio.horsens-garage.rocks:8443/
http://radio.horsens-garage.rocks:8000/


And, if I login as admin, the listenurl is:

'listenurl 	http://radio.horsens-garage.rocks:8443/stream'

for both http and https. It looks like the "http://" is hardcoded into
the icecast code, so it must be considered a (cosmetic?) bug in icecast
(imho), but should't it report the correct listenurl for both http and
https? 

And, there is the same problem with server_url: It report

'server_url 	http://radio.horsens-garage.rocks:8000'

for both http and https.

I know these informations are send from ezstream, so maybe the problems
are related to ezstream. If that's the case, how do I contact
maintainers?


Thomas


===================================

<icecast>
    <location>Denmark</location>
    <admin>rpix at vongriffen.dk</admin>

    <limits>
        <clients>100</clients>
        <sources>2</sources>
        <queue-size>524288</queue-size>
        <client-timeout>30</client-timeout>
        <header-timeout>15</header-timeout>
        <source-timeout>10</source-timeout>
        <burst-size>65535</burst-size>
    </limits>

    <authentication>
        <source-password>xxx</source-password>
        <relay-password>xxx</relay-password>
        <admin-user>xxx</admin-user>
        <admin-password>xxx</admin-password>
    </authentication>

     <directory>
         <yp-url-timeout>15</yp-url-timeout>
         <url>http://icecast-yp.internet-radio.com</url>
     </directory>
     <directory>
         <yp-url-timeout>15</yp-url-timeout>
         <url>http://dir.xiph.org/cgi-bin/yp-cgi</url>
     </directory>

    <hostname>radio.horsens-garage.rocks</hostname>

    <listen-socket>
        <port>8443</port>
        <ssl>1</ssl>
    </listen-socket>
 
    <listen-socket>
        <port>8000</port>
    </listen-socket>

    <http-headers>
      <header name="Access-Control-Allow-Origin" value="*" />
      <header name="icy-index-metadata" value="1" />
      <header name="icy-logo"
value="https://horsens-garage.rocks/band.jpg" />
      <header name="icy-country-code" value="DK" />
      <header name="icy-country-subdivision-code" value="DK-82" />
      <header name="icy-language-codes" value="da" />
      <header name="icy-main-stream-url"
value="https://radio.horsens-garage.rocks:8443/stream" />
      <header name="icy-geo-lat-long" value="55.8665265,9.8283181" />
    </http-headers>

    <fileserve>1</fileserve>

    <paths>
        <basedir>/usr/share/icecast2</basedir>
        <logdir>/var/log/icecast2</logdir>
        <webroot>/usr/share/icecast2/web</webroot>
        <adminroot>/usr/share/icecast2/admin</adminroot>
        <alias source="/" destination="/status.xsl"/>

        <ssl-certificate>/etc/icecast2/bundle.pem</ssl-certificate>
    </paths>

    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
        <loglevel>1</loglevel>
        <logsize>10000</logsize>
    </logging>

    <security>
        <chroot>0</chroot>
    </security>
</icecast>

============================================

<?xml version="1.0" encoding="UTF-8"?>

<ezstream>
  <servers>
    <server>
      <name>stream_https</name>
      <protocol>HTTPS</protocol>
      <port>8443</port>
      <user>source</user>
      <hostname>radio.horsens-garage.rocks</hostname>
      <password>xxx</password>
      
      <tls>required</tls>
     
<tls_cipher_suite>HIGH:!RSA:!SHA:!DH:!aNULL:!eNULL:!TLSv1</tls_cipher_s
uite>
      <ca_dir>/etc/ssl/certs</ca_dir>
      <client_cert>/etc/icecast2/bundle.pem</client_cert>
    </server>

    <server>
      <name>stream_http</name>
      <protocol>HTTP</protocol>
      <port>8000</port>
      <user>source</user>
      <hostname>radio.horsens-garage.rocks</hostname>
      <password>xxxx</password>
    </server>
  </servers>
     
  <streams>
    <stream>
      <mountpoint>/stream</mountpoint>
      <server>stream_https</server>
      <format>mp3</format>
      <stream_name>Horsens Garage Radio</stream_name>
      <stream_url>https://radio.horsens-garage.rocks:8443</stream_url>
      <stream_genre>Rock</stream_genre>
      <stream_description>Recordings from our practice
room</stream_description>
      <stream_quality>5</stream_quality>
      <stream_bitrate>128</stream_bitrate>
      <stream_samplerate>44100</stream_samplerate>
      <stream_channels>2</stream_channels>
      <public>1</public>
    </stream>

    <stream>
      <mountpoint>/stream</mountpoint>
      <format>mp3</format>
      <server>stream_http</server>
      <stream_name>Horsens Garage Radio</stream_name>
      <stream_url>http://radio.horsens-garage.rocks:8000</stream_url>
      <stream_genre>Rock</stream_genre>
      <stream_description>Recordings from our practice
room</stream_description>
      <stream_quality>5</stream_quality>
      <public>1</public>
    </stream>

  </streams>

  <intakes>
    <intake>
      <type>program</type>
      <filename>/home/thomas/ezstream/play.sh</filename>
      <playlist_program>1</playlist_program>
      <stream_once>0</stream_once>
    </intake>
  </intakes>

[...]

</ezstream>



More information about the Icecast mailing list