From 278d9a9db3fea974422ffebdf8493a13f7641308 Mon Sep 17 00:00:00 2001 From: ethers Date: Thu, 14 May 2015 00:57:24 -0700 Subject: [PATCH 1/3] README since many people in IRC etc keep asking about WS_SECRET --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d3503d7..a875b7e 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Configure the app modifying [processes.json](/eth-net-intelligence-api/blob/mast "INSTANCE_NAME" : "", // whatever you wish to name your node "CONTACT_DETAILS" : "", // add your contact details here if you wish (email/skype) "WS_SERVER" : "wss://stats.ethdev.com", // path to eth-netstats WebSockets api server - "WS_SECRET" : "", // WebSockets api server secret used for login + "WS_SECRET" : "see http://forum.ethereum.org/discussion/2112/how-to-add-yourself-to-the-stats-dashboard-its-not-automatic", // WebSockets api server secret used for login } ``` @@ -58,4 +58,4 @@ It will stop the current netstats client processes, automatically detect your et [travis-image]: https://travis-ci.org/cubedro/eth-net-intelligence-api.svg [travis-url]: https://travis-ci.org/cubedro/eth-net-intelligence-api [dep-image]: https://david-dm.org/cubedro/eth-net-intelligence-api.svg -[dep-url]: https://david-dm.org/cubedro/eth-net-intelligence-api \ No newline at end of file +[dep-url]: https://david-dm.org/cubedro/eth-net-intelligence-api From 70d741c8acceac6a60f78379d767af7ff745d41f Mon Sep 17 00:00:00 2001 From: ethers Date: Thu, 14 May 2015 00:59:11 -0700 Subject: [PATCH 2/3] refer people to forum post about WS_SECRET (too many times asked in IRC etc) --- app.json | 4 ++-- processes-ec2.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app.json b/app.json index 35b90e1..1dd6c7a 100644 --- a/app.json +++ b/app.json @@ -16,7 +16,7 @@ "INSTANCE_NAME" : "", "CONTACT_DETAILS" : "", "WS_SERVER" : "wss://stats.ethdev.com", - "WS_SECRET" : "eth-net-stats-has-a-secret", + "WS_SECRET" : "see http://forum.ethereum.org/discussion/2112/how-to-add-yourself-to-the-stats-dashboard-its-not-automatic", } } -] \ No newline at end of file +] diff --git a/processes-ec2.json b/processes-ec2.json index f90fc7f..7d6e2e5 100644 --- a/processes-ec2.json +++ b/processes-ec2.json @@ -34,7 +34,7 @@ "INSTANCE_NAME" : "", "CONTACT_DETAILS" : "", "WS_SERVER" : "wss://stats.ethdev.com", - "WS_SECRET" : "eth-net-stats-has-a-secret", + "WS_SECRET" : "see http://forum.ethereum.org/discussion/2112/how-to-add-yourself-to-the-stats-dashboard-its-not-automatic", } } -] \ No newline at end of file +] From ebd0db28c8ccb3af2b76f5aae736b90aeda21d67 Mon Sep 17 00:00:00 2001 From: Anthony Eufemio Date: Tue, 23 Jun 2015 19:23:18 +0800 Subject: [PATCH 3/3] ignore app.json and use app.json.example for repo --- .gitignore | 1 + app.json.example | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 app.json.example diff --git a/.gitignore b/.gitignore index e7156bc..9acb73f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .DS_Store +app.json */**/.DS_Store node_modules npm-debug.log diff --git a/app.json.example b/app.json.example new file mode 100644 index 0000000..edd3eba --- /dev/null +++ b/app.json.example @@ -0,0 +1,23 @@ +[ + { + "name" : "node-app", + "script" : "app.js", + "log_date_format" : "YYYY-MM-DD HH:mm Z", + "merge_logs" : false, + "watch" : false, + "max_restarts" : 10, + "exec_interpreter" : "node", + "exec_mode" : "fork_mode", + "env": + { + "NODE_ENV" : "production", + "RPC_HOST" : "localhost", + "RPC_PORT" : "8545", + "LISTENING_PORT" : "30303", + "INSTANCE_NAME" : "", + "CONTACT_DETAILS" : "", + "WS_SERVER" : "wss://stats.ethdev.com", + "WS_SECRET" : "see http://forum.ethereum.org/discussion/2112/how-to-add-yourself-to-the-stats-dashboard-its-not-automatic", + } + } +]