Skip to content

Commit 0c040eb

Browse files
author
Siddharth Karandikar
committed
Update README.md
1 parent b17e599 commit 0c040eb

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,26 @@
11
# revproxy
2-
simple reverse proxy
2+
a simple reverse proxy
3+
4+
it is nothing but go-lang's inbuilt reverse proxy functionality exposed as handy utility.
5+
6+
7+
## how to use revproxy
8+
```
9+
Usage of $GOROOT/bin/revproxy:
10+
-backend string
11+
backend's host:port (default "localhost:8080")
12+
-crt string
13+
certificate file path (default "crt")
14+
-https
15+
terminate https? (default true)
16+
-key string
17+
key file path (default "key")
18+
-listenOn string
19+
port to listen on (default "443")
20+
```
21+
#### example
22+
```
23+
sudo ~/go/bin/revproxy -backend=demo.io:80 -crt=/tmp/crt -key=/tmp/key
24+
```
25+
This will start revproxy process that listens on port 443. It will use certificate and key from location specified in arguments.
26+
There is a single backend 'demo.io' which is listening on port 80.

0 commit comments

Comments
 (0)