IceCast 流认证

IceCast stream authentication

我正在使用 Icecast 2.3.3。

我想使用 URL 流认证,问题是认证服务器 url 没有被 Icecast 服务器调用,我不知道为什么。 Icecast 服务器在 Azure 的 Linux 机器上运行,授权服务器是 Azure Web App。我尝试了不同的配置,但出现了意想不到的错误。 首先,对于:

<mount type="normal">
    <mount-name>/local.ogg</mount-name>
    <authentication type="url">
        <option name="stream_auth" value="http://localhost/"/>
    </authentication>
</mount>

我收到这个错误(我理解):

[2015-05-13  18:36:52] EROR connection/_handle_connection HTTP request parsing failed
[2015-05-13  18:36:52] WARN auth_url/url_stream_auth auth to server http://localhost/ failed with Failed to connect to localhost port 80: Connection refused
[2015-05-13  18:36:52] WARN auth/stream_auth_callback Failed auth for source "/local.ogg"

然后,对于:

<mount type="normal">
    <mount-name>/ip.ogg</mount-name>
    <authentication type="url">
        <option name="stream_auth" value="http://123.45.67.89/"/>
    </authentication>
</mount>

同样,错误如我所料(这个ip是随机的):

[2015-05-13  18:37:34] EROR connection/_handle_connection HTTP request parsing failed
[2015-05-13  18:37:35] WARN auth_url/url_stream_auth auth to server http://123.45.67.89/ failed with Connection timed out after 15008 milliseconds
[2015-05-13  18:37:35] WARN auth/stream_auth_callback Failed auth for source "/ip.ogg"

但是,当我想使用我的 Web 应用程序时

<mount type="normal">
    <mount-name>/blast.ogg</mount-name>
    <authentication type="url">
        <option name="stream_auth" value="http://blast.azurewebsites.net/"/>
    </authentication>
</mount>

我没有收到可以向我解释错误的错误

[2015-05-13  18:38:29] EROR connection/_handle_connection HTTP request parsing failed
[2015-05-13  18:38:30] WARN auth/stream_auth_callback Failed auth for source "/blast.ogg"

关于 Icecast stream_auth 函数有什么我应该知道的吗?或者,也许我必须以不同的方式使用 Icecast 设置我的 VM?

如果有人有使用 stream_auth 的工作示例,我们也将不胜感激。

看起来 icecast 安装过程没有检查 libcurl 的可用性。此功能需要哪个。检查你的 config.log 是否有像 "libcurl not found" 这样的消息 如果是这样,那么您可以 运行 "apt-get install libcurl4-gnutils-dev " 安装 libcurl。这应该可以修复此错误。