added more to info

This commit is contained in:
cubedro 2015-04-17 00:36:38 +03:00
parent d180aa7b4d
commit 00c9086a2a
3 changed files with 9 additions and 1 deletions

View File

@ -12,7 +12,9 @@
"NODE_ENV" : "production",
"RPC_HOST" : "localhost",
"RPC_PORT" : "8080",
"LISTENING_PORT" : "30303",
"INSTANCE_NAME" : "",
"CONTACT_DETAILS" : "",
"WS_SERVER" : "wss://eth-netstats.herokuapp.com",
"WS_SECRET" : "eth-net-stats-has-a-secret",
}

View File

@ -4,6 +4,7 @@ var os = require('os');
var shelljs = require('shelljs');
var debounce = require('debounce');
var registrar = require('./registrar.js');
var pjson = require('./../package.json');
var Primus = require('primus'),
Emitter = require('primus-emit'),
@ -55,12 +56,15 @@ function Node()
}
this.info = {
client: pjson.version,
name: INSTANCE_NAME || (process.env.EC2_INSTANCE_ID || os.hostname()),
contact: (process.env.CONTACT_DETAILS || ""),
node: ETH_VERSION,
net: NET_VERSION,
api: API_VERSION,
port: (process.env.LISTENING_PORT || 30303),
os: os.platform(),
os_v: os.release()
os_v: os.release(),
};
this.id = _.camelCase(this.info.name);

View File

@ -29,7 +29,9 @@
"NODE_ENV" : "production",
"RPC_HOST" : "localhost",
"RPC_PORT" : "8080",
"LISTENING_PORT" : "30303",
"INSTANCE_NAME" : "",
"CONTACT_DETAILS" : "",
"WS_SERVER" : "wss://eth-netstats.herokuapp.com",
"WS_SECRET" : "eth-net-stats-has-a-secret",
}