added more to info
This commit is contained in:
parent
d180aa7b4d
commit
00c9086a2a
2
app.json
2
app.json
@ -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",
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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",
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user