Skip to content

Commit 9f0f750

Browse files
committed
add readme
1 parent 2741177 commit 9f0f750

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# proxy [![Build Status](https://travis-ci.org/jaemk/proxy.svg?branch=master)](https://travis-ci.org/jaemk/proxy)
2+
3+
> command line proxy server
4+
5+
## Installation
6+
7+
See [`releases`](https://github.com/jaemk/proxy/releases)
8+
9+
Or build from source:
10+
- clone this repo
11+
- `cargo build --release`
12+
13+
Updates:
14+
- Self update functionality (from `github` releases) is available behind `--features update`
15+
- Binary [`releases`](https://github.com/jaemk/proxy/releases) are compiled with the `update` feature
16+
- `proxy self update`
17+
18+
## Usage
19+
20+
```bash
21+
# - proxy requests to `localhost:3002`
22+
# - listen on `localhost:3000`
23+
# - serve requests starting with `/static/` from the relative path `static/`
24+
# - serve requests starting with `/media/` from the absolute path `/abs/path/to/media
25+
# - serve requests starting with `/assets/` from the relative path `assets`
26+
proxy localhost:3002 --port 3000 --static /static/,static/ --static /media/,/abs/path/to/media --static /assets/,assets
27+
```
28+

0 commit comments

Comments
 (0)