proxy

Build status Build Status crates.io:cli-proxy

command-line proxy server

Note, this is intended for development purposes as a quick stand-in for a real proxy 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 the update feature - proxy self update

Usage

```bash

- 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

proxy serve \ --port 3000 \ --static /static/,static/ \ --static /media/,/abs/path/to/media \ -s /assets/,assets \ --sub-proxy /api/,localhost:4001 \ -P /status/,localhost:4002 \ localhost:3002 ```