#zip #http #zip-archive #exports #content

app zip-http-server

The http server exports contents in zip file

5 releases

0.2.2 Feb 1, 2022
0.2.1 Jan 26, 2022
0.2.0 Oct 8, 2021
0.1.1 Sep 18, 2021
0.1.0 Sep 12, 2021

#861 in HTTP server

Apache-2.0 OR MIT

20KB
449 lines

Zip Http Server

a12 maintenance: Slowly Crates.io (latest) github packages download

The http server exports contents in zip file.

Stability warning

All APIs including command line interface, docker container are not yet stable. They can be changed in the feature.

How to use

via docker

This server is arrival on ghcr.io, github packages container registry.

docker run -p 80:80 -v '/path/to/zip/file:/root.zip' ghcr.io/anatawa12/zip-http-server 

You can specify path to zip and listening ports as parameters of docker run.

# listen on 8080 on ipv6
docker run \
    -p 8080:8080 \
    -v '/path/to.zip:/root.zip' \
    ghcr.io/anatawa12/zip-http-server \
    /root.zip --address [::]:8080
# listen on unix domain socket
docker run \
    -v '/path/dir:/server/' \
    -v '/path/to.zip:/root.zip' \
    ghcr.io/anatawa12/zip-http-server \
    /root.zip --address unix:/server/server.sock
# See this for All Options
docker run ghcr.io/anatawa12/zip-http-server --help

install via cargo

This server is also arrival on crates.io. You can install via cargo command. For more options, please see --help.

cargo install zip-http-server
zip-http-server /path/to/zip/file

Dependencies

~9–22MB
~257K SLoC