added aws file

This commit is contained in:
cubedro
2015-02-12 23:59:01 +02:00
parent c500f4e069
commit a79210c510
5 changed files with 106 additions and 6 deletions

View File

@@ -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();