File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments