Crates.io | static-video-server |
lib.rs | static-video-server |
version | 0.1.3 |
source | src |
created_at | 2022-12-30 01:56:33.10261 |
updated_at | 2022-12-31 03:52:46.856649 |
description | A simple static video file server. |
homepage | https://github.com/aalekhpatel07/static-video-server |
repository | https://github.com/aalekhpatel07/static-video-server |
max_upload_size | |
id | 747640 |
size | 92,389 |
Host a collection of static video files nested arbitrarily deep in a root directory.
The most common usage would be to provide an index of all available videos inside a root directory.
For example, host all the videos present (arbitrarily deep) inside ~/Videos
via a static file server
available at localhost:9092
.
$ cargo install static-video-server
$ RUST_LOG="info" static-video-server --assets-root "~/Videos" --port 9092 --host "0.0.0.0"
# 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