4 个版本
0.1.3 | 2022 年 12 月 31 日 |
---|---|
0.1.2 | 2022 年 12 月 31 日 |
0.1.1 | 2022 年 12 月 30 日 |
0.1.0 | 2022 年 12 月 30 日 |
#305 in 视频
30KB
240 代码行
静态视频服务器
在根目录中托管任意深度嵌套的静态视频文件集合。
用法
最常用的用法是提供根目录内所有可用视频的索引。
例如,通过一个静态文件服务器在 ~/Videos
内托管所有现有(任意深度)的视频,该服务器在 localhost:9092
上可用。
本地
$ cargo install static-video-server
$ RUST_LOG="info" static-video-server --assets-root "~/Videos" --port 9092 --host "0.0.0.0"
Docker
# Map your content root directory to container's /assets and bind ports 9092
# to access the web UI from host.
$ docker run -d --rm -v ~/Videos:/assets -p 9092:9092 static-video-server:latest
依赖项
~14–22MB
~302K SLoC