A simple HTTP file server written in Go that serves files from a local directory and logs download progress with speed metrics.
make buildOr install directly to /usr/local/bin:
make installRun the unit tests (with the race detector):
make testvideosrv <port> <path>
port— TCP port to listen onpath— directory to serve files from
Example:
videosrv 8080 /srv/videosThe server will be available at http://0.0.0.0:8080 and will serve all files under /srv/videos.
Once the server is running, download a file using curl:
curl -O http://<host>:<port>/<filename>Example:
curl -O http://192.168.1.10:8080/movie.mp4Pull the latest version and reinstall:
./update.sh