7357756625
This should resolve https://github.com/tellform/tellform/issues/281, matching the description in the Configuration section of `README.md`. This also corrects the case of `TRUE` in an example.
47 lines
1.1 KiB
JavaScript
Executable file
47 lines
1.1 KiB
JavaScript
Executable file
'use strict';
|
|
|
|
module.exports = {
|
|
baseUrl: '127.0.0.1:3001',
|
|
db: {
|
|
uri: 'mongodb://localhost/mean-test',
|
|
options: {
|
|
user: '',
|
|
pass: ''
|
|
}
|
|
},
|
|
port: 3001,
|
|
log: {
|
|
// Can specify one of 'combined', 'common', 'dev', 'short', 'tiny'
|
|
format: 'dev',
|
|
// Stream defaults to process.stdout
|
|
// Uncomment to enable logging to a log on the file system
|
|
options: {
|
|
//stream: 'access.log'
|
|
}
|
|
},
|
|
app: {
|
|
title: 'TellForm Test'
|
|
},
|
|
sessionCookie: {
|
|
maxAge: 24 * 60 * 60 * 1000 // 24 hours
|
|
},
|
|
mailer: {
|
|
from: process.env.MAILER_FROM || 'MAILER_FROM',
|
|
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 || ''
|
|
}
|
|
} : {
|
|
service: process.env.MAILER_SERVICE_PROVIDER || '',
|
|
auth: {
|
|
user: process.env.MAILER_EMAIL_ID || '',
|
|
pass: process.env.MAILER_PASSWORD || ''
|
|
}
|
|
}
|
|
}
|
|
};
|