secret from js to json

This commit is contained in:
cubedro 2015-08-19 21:03:03 +03:00
parent 3237db0d1a
commit f4ac50612b
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

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

2
app.js
View File

@ -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)
{