Files
meanTorrent/config/env/development.js

98 lines
2.9 KiB
JavaScript
Raw Normal View History

2013-12-25 16:36:33 +02:00
'use strict';
2015-07-29 08:43:56 -07:00
var defaultEnvConfig = require('./default');
module.exports = {
db: {
uri: process.env.MONGOHQ_URL || process.env.MONGODB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/mean-dev-v2',
options: {
user: '',
pass: ''
2014-11-10 23:12:33 +02:00
},
// Enable mongoose debug mode
debug: process.env.MONGODB_DEBUG || false
},
log: {
// logging with Morgan - https://github.com/expressjs/morgan
// Can specify one of 'combined', 'common', 'dev', 'short', 'tiny'
format: 'dev',
fileLogger: {
directoryPath: process.cwd(),
fileName: 'app.log',
maxsize: 10485760,
maxFiles: 2,
json: false
}
},
app: {
title: defaultEnvConfig.app.title + ' - Development Environment'
},
facebook: {
clientID: process.env.FACEBOOK_ID || 'APP_ID',
clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET',
callbackURL: '/api/auth/facebook/callback'
},
twitter: {
username: '@TWITTER_USERNAME',
clientID: process.env.TWITTER_KEY || 'CONSUMER_KEY',
clientSecret: process.env.TWITTER_SECRET || 'CONSUMER_SECRET',
callbackURL: '/api/auth/twitter/callback'
},
google: {
clientID: process.env.GOOGLE_ID || 'APP_ID',
clientSecret: process.env.GOOGLE_SECRET || 'APP_SECRET',
callbackURL: '/api/auth/google/callback'
},
linkedin: {
clientID: process.env.LINKEDIN_ID || 'APP_ID',
clientSecret: process.env.LINKEDIN_SECRET || 'APP_SECRET',
callbackURL: '/api/auth/linkedin/callback'
},
github: {
clientID: process.env.GITHUB_ID || 'APP_ID',
clientSecret: process.env.GITHUB_SECRET || 'APP_SECRET',
callbackURL: '/api/auth/github/callback'
},
paypal: {
clientID: process.env.PAYPAL_ID || 'CLIENT_ID',
clientSecret: process.env.PAYPAL_SECRET || 'CLIENT_SECRET',
callbackURL: '/api/auth/paypal/callback',
sandbox: true
},
mailer: {
from: process.env.MAILER_FROM || 'admin@chd.im',
options: {
service: process.env.MAILER_SERVICE_PROVIDER || '"Gmail"',
auth: {
user: process.env.MAILER_EMAIL_ID || 'taobataoma@gmail.com',
pass: process.env.MAILER_PASSWORD || 'ykyghbmpjfdliyph'
}
}
},
2015-08-13 09:37:24 -05:00
livereload: true,
Seed options - logResults Added an options object to the database seed configuration. Currently, the only option implemented is `logResults`; set using the seedDB env config options (default to "true"). Modified the definition of the env config for seedDB. It's now an object, with options. Setting the logResults option is set to `false` in the core configuration server test suite. Also, fixed an issue with how env configs were reading the seedDB setting from the env variables. Previously, the config was getting set by looking for merely the existence of the env variable (MONGO_SEED). However, if this setting existed but was set to "false", the seedDB would be turned on. Added the SeedDB user details to the env config, and seedDB options. Added tests to the core server config test suite should have seedDB configuration set for "regular" user should have seedDB configuration set for admin user should seed admin, and "regular" user accounts when NODE_ENV is set to "test" when they already exist should ONLY seed admin user account when NODE_ENV is set to "production" with custom admin should seed admin, and "regular" user accounts when NODE_ENV is set to "test" with custom options should NOT seed admin user account if it already exists when NODE_ENV is set to "production" should NOT seed "regular" user account if missing email when NODE_ENV set to "test" Added support for environment variables to seedDB env configs; currently only supporting username & email. Refactored how the SeedDB rejects were being handled
2015-10-09 01:54:08 -07:00
seedDB: {
seed: process.env.MONGO_SEED === 'true',
Seed options - logResults Added an options object to the database seed configuration. Currently, the only option implemented is `logResults`; set using the seedDB env config options (default to "true"). Modified the definition of the env config for seedDB. It's now an object, with options. Setting the logResults option is set to `false` in the core configuration server test suite. Also, fixed an issue with how env configs were reading the seedDB setting from the env variables. Previously, the config was getting set by looking for merely the existence of the env variable (MONGO_SEED). However, if this setting existed but was set to "false", the seedDB would be turned on. Added the SeedDB user details to the env config, and seedDB options. Added tests to the core server config test suite should have seedDB configuration set for "regular" user should have seedDB configuration set for admin user should seed admin, and "regular" user accounts when NODE_ENV is set to "test" when they already exist should ONLY seed admin user account when NODE_ENV is set to "production" with custom admin should seed admin, and "regular" user accounts when NODE_ENV is set to "test" with custom options should NOT seed admin user account if it already exists when NODE_ENV is set to "production" should NOT seed "regular" user account if missing email when NODE_ENV set to "test" Added support for environment variables to seedDB env configs; currently only supporting username & email. Refactored how the SeedDB rejects were being handled
2015-10-09 01:54:08 -07:00
options: {
logResults: process.env.MONGO_SEED_LOG_RESULTS !== 'false',
Seed options - logResults Added an options object to the database seed configuration. Currently, the only option implemented is `logResults`; set using the seedDB env config options (default to "true"). Modified the definition of the env config for seedDB. It's now an object, with options. Setting the logResults option is set to `false` in the core configuration server test suite. Also, fixed an issue with how env configs were reading the seedDB setting from the env variables. Previously, the config was getting set by looking for merely the existence of the env variable (MONGO_SEED). However, if this setting existed but was set to "false", the seedDB would be turned on. Added the SeedDB user details to the env config, and seedDB options. Added tests to the core server config test suite should have seedDB configuration set for "regular" user should have seedDB configuration set for admin user should seed admin, and "regular" user accounts when NODE_ENV is set to "test" when they already exist should ONLY seed admin user account when NODE_ENV is set to "production" with custom admin should seed admin, and "regular" user accounts when NODE_ENV is set to "test" with custom options should NOT seed admin user account if it already exists when NODE_ENV is set to "production" should NOT seed "regular" user account if missing email when NODE_ENV set to "test" Added support for environment variables to seedDB env configs; currently only supporting username & email. Refactored how the SeedDB rejects were being handled
2015-10-09 01:54:08 -07:00
seedUser: {
username: process.env.MONGO_SEED_USER_USERNAME || 'seeduser',
Seed options - logResults Added an options object to the database seed configuration. Currently, the only option implemented is `logResults`; set using the seedDB env config options (default to "true"). Modified the definition of the env config for seedDB. It's now an object, with options. Setting the logResults option is set to `false` in the core configuration server test suite. Also, fixed an issue with how env configs were reading the seedDB setting from the env variables. Previously, the config was getting set by looking for merely the existence of the env variable (MONGO_SEED). However, if this setting existed but was set to "false", the seedDB would be turned on. Added the SeedDB user details to the env config, and seedDB options. Added tests to the core server config test suite should have seedDB configuration set for "regular" user should have seedDB configuration set for admin user should seed admin, and "regular" user accounts when NODE_ENV is set to "test" when they already exist should ONLY seed admin user account when NODE_ENV is set to "production" with custom admin should seed admin, and "regular" user accounts when NODE_ENV is set to "test" with custom options should NOT seed admin user account if it already exists when NODE_ENV is set to "production" should NOT seed "regular" user account if missing email when NODE_ENV set to "test" Added support for environment variables to seedDB env configs; currently only supporting username & email. Refactored how the SeedDB rejects were being handled
2015-10-09 01:54:08 -07:00
provider: 'local',
email: process.env.MONGO_SEED_USER_EMAIL || 'user@localhost.com',
firstName: 'User',
lastName: 'Local',
displayName: 'User Local',
roles: ['user']
},
seedAdmin: {
username: process.env.MONGO_SEED_ADMIN_USERNAME || 'seedadmin',
Seed options - logResults Added an options object to the database seed configuration. Currently, the only option implemented is `logResults`; set using the seedDB env config options (default to "true"). Modified the definition of the env config for seedDB. It's now an object, with options. Setting the logResults option is set to `false` in the core configuration server test suite. Also, fixed an issue with how env configs were reading the seedDB setting from the env variables. Previously, the config was getting set by looking for merely the existence of the env variable (MONGO_SEED). However, if this setting existed but was set to "false", the seedDB would be turned on. Added the SeedDB user details to the env config, and seedDB options. Added tests to the core server config test suite should have seedDB configuration set for "regular" user should have seedDB configuration set for admin user should seed admin, and "regular" user accounts when NODE_ENV is set to "test" when they already exist should ONLY seed admin user account when NODE_ENV is set to "production" with custom admin should seed admin, and "regular" user accounts when NODE_ENV is set to "test" with custom options should NOT seed admin user account if it already exists when NODE_ENV is set to "production" should NOT seed "regular" user account if missing email when NODE_ENV set to "test" Added support for environment variables to seedDB env configs; currently only supporting username & email. Refactored how the SeedDB rejects were being handled
2015-10-09 01:54:08 -07:00
provider: 'local',
email: process.env.MONGO_SEED_ADMIN_EMAIL || 'admin@localhost.com',
firstName: 'Admin',
lastName: 'Local',
displayName: 'Admin Local',
roles: ['user', 'admin']
}
}
}
};