cli-proxy-0.3.5 is not a library.
proxy
command-line proxy server
This tool is intended for:
- A quick stand-in for a real proxy server (For development purposes only).
- A very simple static site/file server
Installation
See releases
,
cargo install cli-proxy
,
Or build from source:
- clone this repo
cargo build --release
Updates:
- Self update functionality (from
github
releases) is available behind--features update
- Binary
releases
are compiled with theupdate
feature proxy self update
Usage
Development proxy
# - listen on `localhost:3000`
# - serve requests starting with `/static/` from the relative path `static/`
# - serve requests starting with `/media/` from the absolute path `/abs/path/to/media
# - serve requests starting with `/assets/` from the relative path `assets`
# - proxy requests starting with `/api/` to `localhost:4001`
# - proxy requests starting with `/status/` to `localhost:4002`
# - proxy remaining requests to `localhost:3002`
Static site server
# - generate crate documentation
# - serve / request with target/doc/<crate>/index.html
# - serve static files starting with "/" from target/doc
# - serve static files starting with "/" from target/doc/<crate>
Static file server
# - serve static files from the current directory