Skip to content

Small docker container which allows downloading random files with limited speed and custom name.

Notifications You must be signed in to change notification settings

Guillembonet/random-file-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

random-file-server

Docker Version Docker Pulls

This code has been almost fully generated by Chat GPT.

Description

Small docker container which allows downloading random files with limited speed and custom name.

Usage

Just run the container and optionally specify flags:

  -address string
        Address to listen on (default ":8080")
  -maxSizeMB int
        Maximum size of file to serve in MB (default 100000)

Download a test file with:

curl http://localhost:8080/file?size_mb=<size>&mbs=5&filename=test.bin > filename or by visiting the same url in a browser.

mbs (to set the MB/s download speed) and filename parameters are optional.