xiph / Icecast-Server

Icecast streaming media server (Mirror) - Please report bugs at https://gitlab.xiph.org/xiph/icecast-server/issues
https://icecast.org
GNU General Public License v2.0
465 stars 127 forks source link

JSON stats http url not automatically redirecting to secure https #53

Closed sanderdewijs closed 1 year ago

sanderdewijs commented 1 year ago

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?

phschafft commented 1 year ago

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

sanderdewijs commented 1 year ago

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?

phschafft commented 1 year ago

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. ;)