tardis-dev / tardis-machine

Locally runnable server with built-in data caching, providing both tick-level historical and consolidated real-time cryptocurrency market data via HTTP and WebSocket APIs
https://docs.tardis.dev/api/tardis-machine
Mozilla Public License 2.0
235 stars 46 forks source link

Add a commandline option to allow configuration of a proxy server #6

Closed rakeshkaria closed 3 years ago

rakeshkaria commented 3 years ago

As per https://github.com/tardis-dev/tardis-node/issues/32, tardis-node and tardis-machine do not work when run behind a corporate proxy. This issue captures the tardis-machine part of the problem.

I propose a --proxy argument is added to the tardismachine.js binary, such that a proxy can be fed in independently of environment config etc. That argument can then be passed into the Options object of tardis-node.

To that end, please see this PR which I think should make this all work: https://github.com/tardis-dev/tardis-machine/pull/5

thaaddeus commented 3 years ago

should be working in v3.3.15 via HTTP_PROXY env variable, thanks.