secret from js to json

pull/5/head
cubedro 9 years ago
parent 3237db0d1a
commit f4ac50612b
  1. 2
      .gitignore
  2. 2
      app.js

2
.gitignore vendored

@ -10,4 +10,4 @@ config/nodes.js
*.swp
*.pem
.node-xmlhttprequest-*
ws_secret.js
ws_secret.json

@ -20,7 +20,7 @@ if( !_.isUndefined(process.env.WS_SECRET) && !_.isNull(process.env.WS_SECRET) )
else
{
try {
WS_SECRET = require('./ws_secret.js');
WS_SECRET = require('./ws_secret.json');
}
catch (e)
{

Loading…
Cancel
Save