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: {
|
2017-03-30 18:49:24 +00:00
|
|
|
uri: process.env.MONGO_URL || process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/mean',
|
2015-06-29 22:51:29 +00:00
|
|
|
},
|
2016-10-24 08:24:25 +00:00
|
|
|
port: process.env.PORT || 5000,
|
2017-03-27 20:32:06 +00:00
|
|
|
socketUrl: process.env.SOCKET_URL || 'ws.tellform.com',
|
2017-03-30 18:54:59 +00:00
|
|
|
socketPort: process.env.SOCKET_PORT || null,
|
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: {
|
2017-03-13 04:18:55 +00:00
|
|
|
bower_js: 'public/dist/vendor.min.js',
|
2015-06-29 22:51:29 +00:00
|
|
|
css: 'public/dist/application.min.css',
|
2016-06-20 22:35:41 +00:00
|
|
|
js: 'public/dist/application.min.js',
|
|
|
|
form_js: 'public/dist/form-application.min.js'
|
2015-06-29 22:51:29 +00:00
|
|
|
},
|
|
|
|
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: {
|
2017-03-30 18:49:24 +00:00
|
|
|
from: process.env.MAILER_FROM || 'testing@'+process.env.SPARKPOST_SANDBOX_DOMAIN || '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: {
|
2017-03-30 18:49:24 +00:00
|
|
|
user: process.env.MAILER_EMAIL_ID || process.env.SPARKPOST_SMTP_USERNAME || '',
|
|
|
|
pass: process.env.MAILER_PASSWORD || process.env.SPARKPOST_SMTP_PASSWORD || ''
|
2015-06-29 22:51:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|