xiph / Icecast-Server

Icecast streaming media server (Mirror) - Please report bugs at https://gitlab.xiph.org/xiph/icecast-server/issues

Home Page:https://icecast.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON stats http url not automatically redirecting to secure https

sanderdewijs opened this issue · comments

For some reason the JSON stats URL is not redirecting all trafic to the https version. If I visit http://spiritueelsamen.nl:8002/status-json.xsl I see an error that the page has been re-initialized.

When I visit https://spiritueelsamen.nl:8002/status-json.xsl the stats page is shown correctly. Is there some way to change this behaviour?

This has been fixed in 7742bf0 long ago. Please try to upgrade if that is needed.
Also keep in mind:

  • for the listen URL to be valid for a given user the stats documents must be fetched the same way (read: by said user).
  • the status-json.xsl was deprecated in 2.5.x

The reason for posting this issue was because I want to see the listener stats of the IceCast stream in Sam broadcaster Pro. The statistic relay settings in SAMBC require a valid user / password to fetch the stats from the server, so I already provide those.

If the status-json.xsl was deprecated in 2.5.x, what would be the correct URL/endpoint to fetch the stats from the server?

The correct endpoints are /admin/stats (for access by admin, and source), and /admin/publicstats (for everyone). As always both accepting the mount parameter (which you really want to use when only fetching data for a single source).

Hope that helps. :)

PS: It's Icecast, not IceCast. ;)