Update README.md
This commit is contained in:
parent
fc89682b9e
commit
3f3b629f37
11
README.md
11
README.md
|
@ -3,13 +3,11 @@
|
||||||
Admin Interface
|
Admin Interface
|
||||||
---------------
|
---------------
|
||||||
Developing the API calls and buliding the structure behind it.
|
Developing the API calls and buliding the structure behind it.
|
||||||
- build get mux router package ---
|
|
||||||
```bash
|
- build get mux router package `go get "github.com/gorilla/mux"`
|
||||||
go get "github.com/gorilla/mux"
|
- run `go-rvpn-server`
|
||||||
```
|
|
||||||
- run go-rvpn-server
|
|
||||||
- execute stunnel (as below)
|
- execute stunnel (as below)
|
||||||
- browse to https://127.0.0.2:8000/api/servers
|
- browse to <https://127.0.0.2:8000/api/servers>
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{"Servers":[{"ServerName":"0xc420019500","Domains":[{"Domain":"127.0.0.1","BytesIn":0,"BytesOut":2607},{"Domain":"hfc.daplie.me","BytesIn":0,"BytesOut":0},{"Domain":"test.hfc.daplie.me","BytesIn":0,"BytesOut":0}],"Duration":372.34454292,"BytesIn":65,"BytesOut":2607}]}
|
{"Servers":[{"ServerName":"0xc420019500","Domains":[{"Domain":"127.0.0.1","BytesIn":0,"BytesOut":2607},{"Domain":"hfc.daplie.me","BytesIn":0,"BytesOut":0},{"Domain":"test.hfc.daplie.me","BytesIn":0,"BytesOut":0}],"Duration":372.34454292,"BytesIn":65,"BytesOut":2607}]}
|
||||||
|
@ -27,6 +25,7 @@ Traffic Testing
|
||||||
---------------
|
---------------
|
||||||
* run go-rvpn-server
|
* run go-rvpn-server
|
||||||
* execute stunnel.js
|
* execute stunnel.js
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bin/stunnel.js --locals http://hfc.daplie.me:8443,http://test.hfc.daplie.me:3001,http://127.0.0.1:8080 --stunneld wss://localhost.daplie.me:3502 --secret abc123
|
bin/stunnel.js --locals http://hfc.daplie.me:8443,http://test.hfc.daplie.me:3001,http://127.0.0.1:8080 --stunneld wss://localhost.daplie.me:3502 --secret abc123
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue