Video https上的FFServer
我们目前通过“http”即Video https上的FFServer,video,https,ffserver,Video,Https,Ffserver,我们目前通过“http”即ffserver提供视频/音频源http://127.0.0.1:8000/folder/feed1.mjpg 然而,现在我们需要通过“https”添加feed来保护页面,所以我们需要做类似的事情https://127.0.0.1:8000/folder/feed1.mjpg 我搜索了网页和文档,但没有找到任何与ffserver和https相关的内容。 这可能吗?如果是这样,有人能告诉我实现这一目标的方向吗?我也有同样的问题-将ffserver的未加密WEBM流嵌入HT
ffserver提供视频/音频源http://127.0.0.1:8000/folder/feed1.mjpg
然而,现在我们需要通过“https”添加feed来保护页面,所以我们需要做类似的事情https://127.0.0.1:8000/folder/feed1.mjpg
我搜索了网页和文档,但没有找到任何与ffserver和https相关的内容。这可能吗?如果是这样,有人能告诉我实现这一目标的方向吗?我也有同样的问题-将ffserver的未加密WEBM流嵌入HTTPS网站会导致浏览器出现“混合内容”警告。 我通过使用带有mod_代理的Apache解决了这个问题。 我基本上遵循了本教程: 简而言之,我只做了以下3个步骤:
a2enmod proxy
a2enmod proxy_http
<VirtualHost *:443>
ServerName livestream.example.com
ProxyPreserveHost On
ProxyPass / http://0.0.0.0:8090/
ProxyPassReverse / http://0.0.0.0:8090/
SSLCertificateFile /etc/letsencrypt/live/example.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/example.com/chain.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
ServerName livestream.example.com
代理主机
ProxyPass/http://0.0.0.0:8090/
ProxyPassReverse/http://0.0.0.0:8090/
SSLCertificateFile/etc/letsencrypt/live/example.com/cert.pem
SSLCertificateKeyFile/etc/letsencrypt/live/example.com/privkey.pem
SSLCertificateChainFile/etc/letsencrypt/live/example.com/chain.pem
Include/etc/letsencrypt/options-ssl-apache.conf
livestream.example.com
(在Ubuntu 16.04、Apache 2.4.18、ffserver 2.8.11上进行了测试)中没有在安全通道上吐出流的直接选项。所以幸运的是,G.的回答肯定是你能做的最好的,尽管你可以使用Nginx而不是Apache2。顺便说一句,如果你的网站使用端口443,你可能需要为相机使用不同的端口。此外,如果
ffserver
在同一台机器上,则ProxyPass[Reserve]
可能应该使用127.0.0.1
。