Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kenriortega committed Jul 9, 2021
1 parent cdb63f1 commit 344a4c0
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,38 @@ PoC for learning how work proxy and load balancer like nginx server
make build
```

> Start Proxy server first time
> List of command available
`genkey` command in true generate random secretkey storaged on badgerdb on `badger.data`
```bash

-backends string
Load balanced backends, use commas to separate
-genkey
Action for generate hash for protected routes
-portLB int
Port to serve to run load balancing (default 3030)
-portProxy int
Port to serve to run proxy (default 5000)
-prevkey string
Action for save a previous hash for protected routes to validate JWT
-type string
Main Service default is proxy (default "proxy")
```

> Start Proxy server first time
`genkey` command in true generate random secretkey and save on badgerdb on `badger.data`

```bash
./goproxy -portProxy 5000 -genkey true
```

`prevkey` command receive a custom secretkey and save this on badgerdb on `badger.data`

```bash
./goproxy -portProxy 5000 -prevkey <secretKey>
```

> Start Proxy server
```bash
Expand Down

0 comments on commit 344a4c0

Please sign in to comment.