2015-06-29 22:51:29 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
module.exports = {
|
2015-07-28 22:29:07 +00:00
|
|
|
baseUrl: 'https://forms.polydaic.com',
|
2015-06-29 22:51:29 +00:00
|
|
|
port: 8443,
|
|
|
|
db: {
|
|
|
|
uri: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://localhost/mean',
|
|
|
|
options: {
|
|
|
|
user: '',
|
|
|
|
pass: ''
|
|
|
|
}
|
|
|
|
},
|
|
|
|
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: {
|
|
|
|
path: '/',
|
|
|
|
httpOnly: false,
|
|
|
|
// If secure is set to true then it will cause the cookie to be set
|
|
|
|
// only when SSL-enabled (HTTPS) is used, and otherwise it won't
|
|
|
|
// set a cookie. 'true' is recommended yet it requires the above
|
|
|
|
// mentioned pre-requisite.
|
|
|
|
secure: true,
|
|
|
|
// Only set the maxAge to null if the cookie shouldn't be expired
|
|
|
|
// at all. The cookie will expunge when the browser is closed.
|
2015-08-11 20:32:27 +00:00
|
|
|
maxAge: 7200,
|
2015-08-07 21:02:44 +00:00
|
|
|
// To set the cookie in a specific domain uncomment the following
|
|
|
|
// setting:
|
|
|
|
domain: 'forms.polydaic.com'
|
|
|
|
},
|
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: 'https://localhost:443/auth/facebook/callback'
|
|
|
|
},
|
|
|
|
twitter: {
|
|
|
|
clientID: process.env.TWITTER_KEY || 'CONSUMER_KEY',
|
|
|
|
clientSecret: process.env.TWITTER_SECRET || 'CONSUMER_SECRET',
|
|
|
|
callbackURL: 'https://localhost:443/auth/twitter/callback'
|
|
|
|
},
|
|
|
|
google: {
|
|
|
|
clientID: process.env.GOOGLE_ID || 'APP_ID',
|
|
|
|
clientSecret: process.env.GOOGLE_SECRET || 'APP_SECRET',
|
|
|
|
callbackURL: 'https://localhost:443/auth/google/callback'
|
|
|
|
},
|
|
|
|
linkedin: {
|
|
|
|
clientID: process.env.LINKEDIN_ID || 'APP_ID',
|
|
|
|
clientSecret: process.env.LINKEDIN_SECRET || 'APP_SECRET',
|
|
|
|
callbackURL: 'https://localhost:443/auth/linkedin/callback'
|
|
|
|
},
|
|
|
|
github: {
|
|
|
|
clientID: process.env.GITHUB_ID || 'APP_ID',
|
|
|
|
clientSecret: process.env.GITHUB_SECRET || 'APP_SECRET',
|
|
|
|
callbackURL: 'https://localhost:443/auth/github/callback'
|
|
|
|
},
|
|
|
|
mailer: {
|
2015-07-27 20:33:43 +00:00
|
|
|
from: process.env.MAILER_FROM || '',
|
2017-08-15 00:58:26 +00:00
|
|
|
options: process.env.MAILER_SMTP_HOST ? { //Uses custom SMTP if MAILER_SMTP_HOST is set
|
|
|
|
host: process.env.MAILER_SMTP_HOST || '',
|
|
|
|
port: process.env.MAILER_SMTP_PORT || 587,
|
|
|
|
secure: process.env.MAILER_SMTP_SECURE || true,
|
|
|
|
auth: {
|
|
|
|
user: process.env.MAILER_EMAIL_ID || '',
|
|
|
|
pass: process.env.MAILER_PASSWORD || ''
|
|
|
|
}
|
|
|
|
} : {
|
2015-07-27 20:33:43 +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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|