gpt4 book ai didi

azure - IceCast 流身份验证

转载 作者:行者123 更新时间:2023-12-03 00:14:31 26 4
gpt4 key购买 nike

我使用的是 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"

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

<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 设置我的虚拟机?

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

最佳答案

看起来icecast安装过程没有检查libcurl的可用性。这是此功能所需要的。检查 config.log 中是否有诸如“libcurl not found”之类的消息如果是这种情况,那么您可以运行“apt-get install libcurl4-gnutils-dev”来安装 libcurl。这应该可以解决这个错误。

关于azure - IceCast 流身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30223129/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com