在 Docker 容器中托管 WordPress 网站的视频
Hosting video for a WordPress site in a Docker container
我有一个 WordPress 站点,它在 nginx 代理容器后面的 Docker 容器中运行。我需要在站点中嵌入少量视频,总共约 8GB。我考虑过在 Vimeo 上托管它们,但该网站是一个小型学术项目的一部分,我们目前没有资金用于持续订阅 Vimeo。所以我一直在研究自托管视频的可能性。
我最初的想法是将视频捆绑到它们自己的 Docker 容器中,然后从那里流式传输。我找到了 this Docker container through Googling 'Docker streaming server', but I really have no idea if it represents a potential solution. I assume that we would indeed need some kind of server to stream the videos, and if so what kind of server? FFmpeg? Something like this?
您不需要为视频构建额外的容器。
只需将它们上传到您的 WordPress 实例的子目录中。
您可以为嵌入式视频使用视频插件:
https://wordpress.org/plugins/easy-video-player/
https://wordpress.org/plugins/wordpress-video-plugin/
或者简单地使用 HTML5 视频标签 link 来源:
我有一个 WordPress 站点,它在 nginx 代理容器后面的 Docker 容器中运行。我需要在站点中嵌入少量视频,总共约 8GB。我考虑过在 Vimeo 上托管它们,但该网站是一个小型学术项目的一部分,我们目前没有资金用于持续订阅 Vimeo。所以我一直在研究自托管视频的可能性。
我最初的想法是将视频捆绑到它们自己的 Docker 容器中,然后从那里流式传输。我找到了 this Docker container through Googling 'Docker streaming server', but I really have no idea if it represents a potential solution. I assume that we would indeed need some kind of server to stream the videos, and if so what kind of server? FFmpeg? Something like this?
您不需要为视频构建额外的容器。
只需将它们上传到您的 WordPress 实例的子目录中。 您可以为嵌入式视频使用视频插件:
https://wordpress.org/plugins/easy-video-player/
https://wordpress.org/plugins/wordpress-video-plugin/
或者简单地使用 HTML5 视频标签 link 来源: