Skip to content

Commit

Permalink
Production config tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Buczynski committed Jul 17, 2016
1 parent ec17d90 commit 753824b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions config/prod.js → config/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = {
SERVER_PUBLIC_INDEX: './public/index.html',

//Database
DB_URI: 'mongodb://localhost/my-application',
DB_URI: process.env.MONGODB_URI,
DB_DEBUG: false,
DB_USER: '',
DB_PASS: '',
Expand All @@ -48,7 +48,10 @@ module.exports = {
//Github
GITHUB_USER: '',
GITHUB_REPO: '',
GITHUB_TOKEN: '',
GITHUB_TOKEN: process.env.GITHUB_TOKEN,

//Sendgrid
SENDGRID_API_KEY: process.env.SENDGRID_API_KEY,

//Error handling middleware
ERROR_MIDDLEWARE: [
Expand Down Expand Up @@ -90,13 +93,10 @@ module.exports = {
},
},

//Sendgrid
SENDGRID_API_KEY: '',

//Cryptography
BCRYPT_ROUNDS: 10,
BCRYPT_ROUNDS: 15,

//User
USER_PASSWORD_MIN_LENGTH: 6,
USER_PASSWORD_MIN_LENGTH: 8,
USER_AVATAR_MAX_FILE_SIZE: 512 * 1024, //bytes
};

0 comments on commit 753824b

Please sign in to comment.