mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-04 19:21:07 +01:00
* commit 'b43c80e2c097b11114f4e4f01b9718321721a89b': feat(build): Update dependencies (#1847) fix(travis): Fix Travis failing on webdriver issues (#1845) fix(eslint): Inconsistent spacing before function parentheses (#1844) fix(mongodb): update ssl connection settings (#1809) Remove deprecated crypto package (#1843) feat(config): Mongo Seed 2.0 (#1808) fix(users): don't fail on missing old image on image upload (#1839) feat(build): Turn on mangling for uglify (#1841) fix(gulp): fix broken test:server:watch task (#1842) feat(core): Enhancement page title directive (#1686) feat(user): Add email support to forgot password (#1834) fix(mocha): update mochajs version to reduce vulnerabilities (#1830) refactor(menus): Refactor to the Menus client service to use functional loops/filters (#1575) feat(config): Mongoose 4.11 upgrade (#1818) # Conflicts: # config/env/development.js # config/lib/app.js # modules/articles/server/models/article.server.model.js # modules/chat/client/config/chat.client.routes.js # modules/core/client/directives/page-title.client.directive.js # modules/core/client/services/menu.client.service.js # modules/users/client/config/users-admin.client.routes.js # modules/users/client/views/password/forgot-password.client.view.html # modules/users/server/models/user.server.model.js # package.json
126 lines
3.7 KiB
JavaScript
126 lines
3.7 KiB
JavaScript
'use strict';
|
|
|
|
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: ''
|
|
},
|
|
// 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 || 'somename@domain.com',
|
|
pass: process.env.MAILER_PASSWORD || 'somepassword'
|
|
}
|
|
}
|
|
},
|
|
livereload: true,
|
|
seedDB: {
|
|
seed: process.env.MONGO_SEED === 'true',
|
|
options: {
|
|
logResults: process.env.MONGO_SEED_LOG_RESULTS !== 'false'
|
|
},
|
|
// Order of collections in configuration will determine order of seeding.
|
|
// i.e. given these settings, the User seeds will be complete before
|
|
// Article seed is performed.
|
|
collections: [{
|
|
model: 'User',
|
|
docs: [{
|
|
data: {
|
|
username: 'local-admin',
|
|
email: 'admin@localhost.com',
|
|
firstName: 'Admin',
|
|
lastName: 'Local',
|
|
roles: ['admin', 'user']
|
|
}
|
|
}, {
|
|
// Set to true to overwrite this document
|
|
// when it already exists in the collection.
|
|
// If set to false, or missing, the seed operation
|
|
// will skip this document to avoid overwriting it.
|
|
overwrite: true,
|
|
data: {
|
|
username: 'local-user',
|
|
email: 'user@localhost.com',
|
|
firstName: 'User',
|
|
lastName: 'Local',
|
|
roles: ['user']
|
|
}
|
|
}]
|
|
}, {
|
|
model: 'Article',
|
|
options: {
|
|
// Override log results setting at the
|
|
// collection level.
|
|
logResults: true
|
|
},
|
|
skip: {
|
|
// Skip collection when this query returns results.
|
|
// e.g. {}: Only seeds collection when it is empty.
|
|
when: {} // Mongoose qualified query
|
|
},
|
|
docs: [{
|
|
data: {
|
|
title: 'First Article',
|
|
content: 'This is a seeded Article for the development environment'
|
|
}
|
|
}]
|
|
}]
|
|
}
|
|
};
|