File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,16 @@ node run server
31
31
32
32
By default, server launches on port ** 8090** .
33
33
34
+ Server accepts these environamental variables:
35
+
36
+ - ADDRESS ... TCP/IP address to listen on (default: localhost)
37
+ - PORT: ... TCP/IP port number to bind to (default: 8090)
38
+ - KEY_SERVER_URL ... URL to a key server. When set, WS Server will call GET
39
+ request on ``<KEY_SERVER_URL>/key/<client-key >"```. If the othe party
40
+ responds with other status code than 200, the connecting client is
41
+ immediatelly disconnected.
42
+ If KEY_SERVER_URL is undefined, client with any key can connect (default: undefined).
43
+
34
44
## Connecting a client to the server
35
45
36
46
Using websocket-proxy client, you can connect your service in your isolated
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ let CONFIG = {
10
10
server : {
11
11
host : val ( 'ADDRESS' , 'localhost' ) ,
12
12
port : val ( 'PORT' , '8090' ) ,
13
- // authenticator config
14
- // null - no authenticator (allow any key to pass )
13
+ // key server url
14
+ // empty value means no authenticator (allow any key to connect )
15
15
// http(s)://... - a url for key-master APIs
16
- keyServerUrl : val ( 'AUTHENTICATOR ' , undefined ) ,
16
+ keyServerUrl : val ( 'KEY_SERVER_URL ' , undefined ) ,
17
17
} ,
18
18
client : {
19
19
key : val ( 'KEY' , 'client-1' ) ,
You can’t perform that action at this time.
0 commit comments