Ok I let it introduce itself here:
Bunginx: Fast, lightweight, simple HTTP file server
bunginx [-pdhc] [--port <port>] [--cluster <count>] [--debug] [cwd]
--port <port: number> Set the port for Bunginx [-p]
- defaults to $PORT or 8000.
--cluster <count: number> Set the threads that Bunginx will spawn [-c]
- defaults to the CPU core count.
--debug Display debug messages during run [-d]
--help Display this message [-h]
[cwd: string] Directory that Bunginx will run on,
- defaults to current directory.
This installation guide is for linux users, for windows please compile it yourself
- Download the binary here (Or "bunginx" in the repo)
- Put it in PATH somewhere idk
Bun installed and is on PATH
- Clone the repository
- For linux, run
bun compile
- For windows, run
bun windows
(Result in 90mb binary, and very limited support) - Result will be in
./bunginx
- (Optional)(Linux-only) Apply the application to
/usr/bin
viabun apply
Pull requests are welcomed.
Bun's Single-file executable integrates and compiles the code into a copy of bun runtime itself, resulting in a pretty large file. However, They will soon make the binary itself smaller.
Simply just remove read permission of that file from the user that Bunginx runs from, or just remove the read permission entirely. (Sorry windows.)