-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed client key not release when connection closes, wrong handling of
uri with search parameters, better logging
- Loading branch information
Robin Gottfried
committed
Feb 18, 2020
1 parent
159225e
commit 996428f
Showing
6 changed files
with
55 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
|
||
INSTALLATION | ||
---- | ||
|
||
git clone ws_rev_proxy | ||
cd ws_rev_proxy | ||
# install node and npm | ||
sudo apt install nodejs npm # it's roughly 50MB :( | ||
|
||
# clone the repository | ||
git clone https://github.com/czervenka/ws-proxy-poc.git | ||
cd ws-proxy-poc | ||
|
||
# install dependencies | ||
npm install | ||
node run server & | ||
|
||
# run either | ||
node run server <host>:<port> & | ||
node run client <client-key> <server_host>:<server_port> <forward_to_base_uri> & # forward-to-* points to a server to forward http to | ||
client_key=kpz-1 | ||
curl localhost:8080/api/$client_key # path is the path to get from <forward-to-host> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters