Skip to content

Instantly share code, notes, and snippets.

@obrientimothya
Created January 25, 2016 05:12
Show Gist options
  • Save obrientimothya/02266009d8f365a77045 to your computer and use it in GitHub Desktop.
Save obrientimothya/02266009d8f365a77045 to your computer and use it in GitHub Desktop.
api-jwt /config.js
module.exports = {
// 1. MongoDB
MONGO_URI: process.env.MONGO_URI || 'mongodb://localhost/apijwt',
// 2. JWT
TOKEN_SECRET: process.env.TOKEN_SECRET || 'pvpnCCZfwOF85pBjbOebZiYIDhZ3w9LZrKwBZ7152K89mPCOHtbRlmr5Z91ci4L',
// 3. Express Server Port
LISTEN_PORT: process.env.LISTEN_PORT || 3000
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment