-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# proxy [![Build Status](https://travis-ci.org/jaemk/proxy.svg?branch=master)](https://travis-ci.org/jaemk/proxy) | ||
|
||
> command line proxy server | ||
## Installation | ||
|
||
See [`releases`](https://github.com/jaemk/proxy/releases) | ||
|
||
Or build from source: | ||
- clone this repo | ||
- `cargo build --release` | ||
|
||
Updates: | ||
- Self update functionality (from `github` releases) is available behind `--features update` | ||
- Binary [`releases`](https://github.com/jaemk/proxy/releases) are compiled with the `update` feature | ||
- `proxy self update` | ||
|
||
## Usage | ||
|
||
```bash | ||
# - proxy requests to `localhost:3002` | ||
# - 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 localhost:3002 --port 3000 --static /static/,static/ --static /media/,/abs/path/to/media --static /assets/,assets | ||
``` | ||
|