2015-06-29 22:51:29 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
module.exports = {
|
2016-04-12 05:58:36 +00:00
|
|
|
baseUrl: process.env.BASE_URL || 'tellform.com',
|
2015-06-29 22:51:29 +00:00
|
|
|
db: {
|
|
|
|
uri: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/mean',
|
|
|
|
options: {
|
2016-04-12 04:35:28 +00:00
|
|
|
user: '',
|
|
|
|
pass: process.env.MONGOLAB_PASS || ''
|
2015-06-29 22:51:29 +00:00
|
|
|
}
|
|
|
|
},
|
2016-04-12 04:35:28 +00:00
|
|
|
port: 4545,
|
2015-06-29 22:51:29 +00:00
|
|
|
log: {
|
|
|
|
// Can specify one of 'combined', 'common', 'dev', 'short', 'tiny'
|
|
|
|
format: 'combined',
|
|
|
|
// Stream defaults to process.stdout
|
|
|
|
// Uncomment to enable logging to a log on the file system
|
|
|
|
options: {
|
|
|
|
stream: 'access.log'
|
|
|
|
}
|
|
|
|
},
|
2015-08-07 21:02:44 +00:00
|
|
|
sessionCookie: {
|
2016-04-12 05:58:36 +00:00
|
|
|
domain: process.env.BASE_URL || 'tellform.com'
|
2015-08-07 21:02:44 +00:00
|
|
|
},
|
2015-06-29 22:51:29 +00:00
|
|
|
assets: {
|
|
|
|
css: 'public/dist/application.min.css',
|
|
|
|
js: 'public/dist/application.min.js'
|
|
|
|
},
|
|
|
|
facebook: {
|
|
|
|
clientID: process.env.FACEBOOK_ID || 'APP_ID',
|
|
|
|
clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET',
|
|
|
|
callbackURL: '/auth/facebook/callback'
|
|
|
|
},
|
|
|
|
twitter: {
|
|
|
|
clientID: process.env.TWITTER_KEY || 'CONSUMER_KEY',
|
|
|
|
clientSecret: process.env.TWITTER_SECRET || 'CONSUMER_SECRET',
|
|
|
|
callbackURL: '/auth/twitter/callback'
|
|
|
|
},
|
|
|
|
google: {
|
|
|
|
clientID: process.env.GOOGLE_ID || 'APP_ID',
|
|
|
|
clientSecret: process.env.GOOGLE_SECRET || 'APP_SECRET',
|
|
|
|
callbackURL: '/auth/google/callback'
|
|
|
|
},
|
|
|
|
linkedin: {
|
|
|
|
clientID: process.env.LINKEDIN_ID || 'APP_ID',
|
|
|
|
clientSecret: process.env.LINKEDIN_SECRET || 'APP_SECRET',
|
|
|
|
callbackURL: '/auth/linkedin/callback'
|
|
|
|
},
|
|
|
|
github: {
|
|
|
|
clientID: process.env.GITHUB_ID || 'APP_ID',
|
|
|
|
clientSecret: process.env.GITHUB_SECRET || 'APP_SECRET',
|
|
|
|
callbackURL: '/auth/github/callback'
|
|
|
|
},
|
|
|
|
mailer: {
|
2015-11-16 22:25:39 +00:00
|
|
|
from: process.env.MAILER_FROM || 'no-reply@tellform.com',
|
2015-06-29 22:51:29 +00:00
|
|
|
options: {
|
2015-11-05 22:38:38 +00:00
|
|
|
service: process.env.MAILER_SERVICE_PROVIDER || '',
|
2015-06-29 22:51:29 +00:00
|
|
|
auth: {
|
2015-07-27 20:33:43 +00:00
|
|
|
user: process.env.MAILER_EMAIL_ID || '',
|
|
|
|
pass: process.env.MAILER_PASSWORD || ''
|
2015-06-29 22:51:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|