added aws file
This commit is contained in:
@@ -7,13 +7,12 @@ var HttpRequest = require('xmlhttprequest').XMLHttpRequest;
|
||||
var MAX_BLOCKS_HISTORY = 12,
|
||||
LOWEST_TIMESTAMP = 0;
|
||||
|
||||
function Node(options)
|
||||
function Node()
|
||||
{
|
||||
this.options = options;
|
||||
this.info = {
|
||||
ip: getExternalIp(),
|
||||
name: options.name,
|
||||
type: options.type,
|
||||
name: process.env.ETH_CLIENT,
|
||||
type: process.env.ETH_TYPE,
|
||||
os: os.platform(),
|
||||
os_v: os.release()
|
||||
};
|
||||
@@ -43,7 +42,7 @@ function Node(options)
|
||||
this.updateInterval = false;
|
||||
|
||||
web3.setProvider(new web3.providers.HttpSyncProvider('http://' + (process.env.RPC_HOST || 'localhost') + ':' + (process.env.RPC_PORT || '8080')));
|
||||
this.socket = require('socket.io-client')((process.env.SOCKET_SERVER || options.serverHost) + ':' + (process.env.SOCKET_PORT || options.serverPort));
|
||||
this.socket = require('socket.io-client')(process.env.SOCKET_SERVER || 'wss://localhost/socket.io/');
|
||||
|
||||
this.init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user