Skip to content

Commit

Permalink
Merge pull request #6 from aak1247/feat/aak1247/tls
Browse files Browse the repository at this point in the history
feat: tls support
  • Loading branch information
aak1247 authored Dec 5, 2023
2 parents ea6a9a5 + 0b069aa commit 2f352eb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ gproxy [-m mode] [-p port] targetURL

then, a simple http server will run on local 8080 port to serve the content of github.com

#### HTTPS

``gproxy -m https --key keyPath --cert certPath -p 8080 http://github.com/``

### Proxy a tcp service:

``gproxy -m tcp -p 2333 github.com:443``
Expand All @@ -30,6 +34,10 @@ back to client

then, a websocket server will run on port 8081 and proxy all ws requests to abc.com. All path and query will be kept and sent to `abc.com`

#### WSS

``gproxy -m wss --key keyPath --cert certPath -p 8081 ws://abc.com``

## Build

### With makefile
Expand Down

0 comments on commit 2f352eb

Please sign in to comment.