Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config.token or environment variable TOKEN is required. Exiting. #133

Closed
198700 opened this issue Jun 7, 2016 · 1 comment
Closed

config.token or environment variable TOKEN is required. Exiting. #133

198700 opened this issue Jun 7, 2016 · 1 comment

Comments

@198700
Copy link

198700 commented Jun 7, 2016

Hello Team,
When i am running "node server.js --http" command , we get " config.token or environment variable TOKEN is required. Exiting. " message. what is the problem . plz provide me some helping links that contains details steps.

Thank's & Regards
Pankaj

@royvandewater
Copy link
Contributor

royvandewater commented Jun 7, 2016

We have an explanation of what the TOKEN does in the README, but it's not in an logical place :-(

https://github.com/octoblu/meshblu#docker

A note about secrets: We require that whomever runs Meshblu to supply a text secret, in the form of the TOKEN environmnet variable, that we can use as a salt when hashing tokens. Not knowing this secret hinders a malicious user when creating a rainbow table to reverse the hashed tokens.

If you are running on Linux/OSX, then the command env TOKEN="<any random string>" node server.js --http should work. Just make sure that whatever random string you use is the same every time, or the device tokens will not be recognized as valid in Meshblu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants