Skip to content

jiacai2050/zms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZMS

https://github.com/jiacai2050/zms/actions/workflows/CI.yml/badge.svg

ZMS provides a pure Zig solution to set up a mirror server for fetching Zig tarballs on demand and caching them on the local disk.

See rationale here.

Suppose X is the base URL, X/${filename} will fetch requested file.

Usage

zig build && ./zig-out/bin/zms --help
USAGE:
    ./zig-out/bin/zms [OPTIONS]

OPTIONS:
 -h, --host STRING                HTTP server bind host(default: 0.0.0.0)
 -p, --port INTEGER               HTTP server bind port(default: 9090)
 -t, --threads INTEGER            Number of threads to use for serving HTTP requests(default: 32)
 -d, --tarball_dir STRING         Directory for storing zig tarballs(default: /tmp)
 -h, --help                       Show help

About

Zig tarball mirror server

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages