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

JWT_KEY not defined error in server #28

Closed
jfey opened this issue Feb 12, 2020 · 3 comments
Closed

JWT_KEY not defined error in server #28

jfey opened this issue Feb 12, 2020 · 3 comments

Comments

@jfey
Copy link

jfey commented Feb 12, 2020

Starting the server via npm run start leads to the following error:

[Nest] 79352 - 2020-02-12 18:43 [ExceptionHandler] Configuration property "JWT_KEY" is not defined +4ms

@riazosama
Copy link

Have you found the solution?

@kenzik
Copy link

kenzik commented Mar 10, 2020

That indicates that the configuration property is not available to the app. The app requires a few. Read the source. To provide it, add it to your environment:

PORT=3030 MONGO_URI=mongodb:https://localhost:27017/yourdb HOST=localhost JWT_KEY=changeme npm start

@nartc nartc closed this as completed Mar 25, 2020
@nartc
Copy link
Owner

nartc commented Mar 25, 2020

Please check #32

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

4 participants