Sign inSign up

s3rius/rustus

By s3rius

•Updated almost 3 years ago

Tus protocol implementation in Rust

Image
Web servers
1

10K+

s3rius/rustus repository overview

logo

Docker Image Size (latest by date) Docker Image Version (latest semver) GitHub

TUS⁠ protocol implementation written in Rust.

⁠Features

This implementation has several features to make usage as simple as possible.

  • Rustus is robust, since it uses asynchronous Rust;
  • It can store information about files in databases;
  • You can specify directory structure to organize your uploads;
  • It has a lot of hooks options, and hooks can be combined.
  • Highly configurable;

⁠Usage

This image doesn't require any additional configuration.

docker run --rm -p 1081:1081 -d s3rius/rustus

If you want to reduce container size you can use -alpine versions. Like s3rius/rustus-0.3.1-alpine.

Now you can use any tus client to interact with rustus. For example:

tus-upload --chunk-size 1000 ~/Videos/38MB_video.mp4 http://localhost:1081/files 

If you want to adjust parameters to fit your needs, you must provide them from CLI or using environment variables.

E.G.

docker run --rm -p 1081:1081 -d s3rius/rustus --log-level DEBUG
# is equal to
docker run --rm -p 1081:1081 -d -e "RUSTUS_LOG_LEVEL=DEBUG" s3rius/rustus

You can see the full list of options by running

docker run --rm s3rius/rustus --help

Any other information can be found in README⁠.

Tag summary

Content type

Image

Digest

sha256:abaee862e…

Size

38.6 MB

Last updated

almost 3 years ago

docker pull s3rius/rustus