Skip to content

Commit

Permalink
Updated stunnel to allow multiple FIX endpoinds.
Browse files Browse the repository at this point in the history
Free Software Free Society

To support commits by ctubio,
you can buy-me-a-drink with a small git tip at:
  1GitTipgxvKB3zjCLXRcSgDhC9pivkpc7u

I promise to drink chocolate milk in the development of the next commit.
Also it will help me to keep the maintenance of the project open source.

To request new features or in case this commit breaks something for you,
please create a new github issue with all possible details,
but never share your API Keys!

Signed-off-by: Carles Tubio <ctubio@users.noreply.github.com>
  • Loading branch information
ctubio committed Jun 14, 2017
1 parent 7def1a0 commit 6e494ad
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
11 changes: 11 additions & 0 deletions dist/K-stunnel.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
client = yes
pid = /var/tmp/stunnel.pid
#foreground = yes
#debug = err
#output = /var/tmp/stunnel.log

[gdax_stream]
verify = 4
accept = 4199
connect = fix.gdax.com:4198
CAfile = /usr/local/etc/stunnel/fix.gdax.com.pem
2 changes: 1 addition & 1 deletion dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ $ docker run -p 3000:3000 --link K-mongo:mongo --name K -d k

If you run `docker ps`, you should see K.js and mongodb containers running.

### fix.gdax.com.conf
### K-stunnel.conf
To run GDAX FIX API encrypted under SSL, this configuration file will be used to launch [stunnel](https://www.stunnel.org/index.html); no need to edit.
11 changes: 0 additions & 11 deletions dist/fix.gdax.com.conf

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"stop": "forever stop -a -l /dev/null $npm_package_config_config || :",
"start": "npm run test-compile && forever start --uid $npm_package_config_config -a -l /dev/null K.js $npm_package_config_config && exec npm run test-stunnel",
"test-compile": "test -d app || npm $(test -d node_modules && echo run post)install",
"test-stunnel": "test -z \"$SKIP_STUNNEL$(ps axu | grep stunnel | grep -v grep)\" && exec stunnel dist/fix.gdax.com.conf || :",
"test-stunnel": "test -z \"$SKIP_STUNNEL$(ps axu | grep stunnel | grep -v grep)\" && exec stunnel dist/K-stunnel.conf || :",
"test": "mocha --timeout 42000 --compilers ts:ts-node/register test/*.ts",
"test-cov": "ts-node ./node_modules/istanbul/lib/cli.js cover --report lcovonly --dir test/coverage -e .ts _mocha -- --timeout 42000 test/*.ts",
"send-cov": "cd test && cat coverage/lcov.info | codacy-coverage && istanbul-coveralls"
Expand Down

0 comments on commit 6e494ad

Please sign in to comment.