2015-06-29 22:51:29 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
app: {
|
2016-04-24 18:35:42 +00:00
|
|
|
google_analytics_id: process.env.GOOGLE_ANALYTICS_ID || '',
|
2016-05-10 06:30:09 +00:00
|
|
|
title: process.env.APP_NAME || 'TellForm',
|
|
|
|
description: process.env.APP_DESC || 'Opensource form builder alternative to TypeForm',
|
|
|
|
keywords: process.env.APP_KEYWORDS || 'typeform, pdfs, forms, opensource, formbuilder, google forms, nodejs'
|
2015-06-29 22:51:29 +00:00
|
|
|
},
|
2016-11-08 22:53:10 +00:00
|
|
|
db: {
|
2016-12-01 00:29:44 +00:00
|
|
|
uri: 'mongodb://'+ (process.env.DB_PORT_27017_TCP_ADDR || process.env.DB_HOST || 'localhost')+'/mean',
|
2016-11-08 22:53:10 +00:00
|
|
|
options: {
|
|
|
|
user: '',
|
|
|
|
pass: ''
|
|
|
|
}
|
|
|
|
},
|
2017-03-10 00:18:18 +00:00
|
|
|
aws: {
|
|
|
|
"accessKeyId": process.env.AWS_ACCESS_ID,
|
|
|
|
"secretAccessKey": process.env.AWS_SECRET_KEY,
|
|
|
|
"region": process.env.AWS_REGION
|
|
|
|
},
|
2016-12-01 00:29:44 +00:00
|
|
|
|
2016-06-20 22:06:41 +00:00
|
|
|
port: process.env.PORT || 3000,
|
|
|
|
socketPort: process.env.SOCKET_PORT || 20523,
|
2016-06-07 00:37:09 +00:00
|
|
|
|
2015-06-29 22:51:29 +00:00
|
|
|
templateEngine: 'swig',
|
2015-07-13 21:47:24 +00:00
|
|
|
|
2016-05-10 08:07:36 +00:00
|
|
|
reCAPTCHA_Key: process.env.reCAPTCHA_KEY || '',
|
|
|
|
|
2016-10-07 16:01:37 +00:00
|
|
|
signupDisabled: (process.env.SIGNUP_DISABLED === "TRUE"),
|
2015-07-27 18:11:43 +00:00
|
|
|
baseUrl: '',
|
2015-08-07 21:02:44 +00:00
|
|
|
tempUserCollection: 'temporary_users',
|
|
|
|
|
|
|
|
mailosaur: {
|
|
|
|
key: process.env.MAILOSAUR_KEY || '',
|
2016-05-10 06:30:09 +00:00
|
|
|
mailbox_id: process.env.MAILOSAUR_MAILBOX || ''
|
2015-08-07 21:02:44 +00:00
|
|
|
},
|
2015-07-27 18:11:43 +00:00
|
|
|
|
2015-07-13 21:47:24 +00:00
|
|
|
//Sentry DSN Client Key
|
2016-04-24 23:53:20 +00:00
|
|
|
DSN: process.env.RAVEN_DSN || '',
|
2015-07-13 22:11:40 +00:00
|
|
|
|
2015-06-29 22:51:29 +00:00
|
|
|
// The secret should be set to a non-guessable string that
|
|
|
|
// is used to compute a session hash
|
|
|
|
sessionSecret: 'MEAN',
|
|
|
|
// The name of the MongoDB collection to store sessions in
|
|
|
|
sessionCollection: 'sessions',
|
|
|
|
// The session cookie settings
|
|
|
|
sessionCookie: {
|
|
|
|
path: '/',
|
|
|
|
httpOnly: true,
|
|
|
|
// 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: false,
|
|
|
|
// Only set the maxAge to null if the cookie shouldn't be expired
|
|
|
|
// at all. The cookie will expunge when the browser is closed.
|
2016-05-10 06:30:09 +00:00
|
|
|
maxAge: null
|
2015-06-29 22:51:29 +00:00
|
|
|
// To set the cookie in a specific domain uncomment the following
|
|
|
|
// setting:
|
2015-11-23 19:19:02 +00:00
|
|
|
// domain: 'tellform.com'
|
2015-06-29 22:51:29 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Upload Configuration
|
|
|
|
*/
|
2016-04-23 15:07:34 +00:00
|
|
|
//Global upload path
|
2015-06-29 22:51:29 +00:00
|
|
|
uploadPath : 'uploads/',
|
|
|
|
//PDF storage path
|
|
|
|
pdfUploadPath: 'uploads/pdfs/',
|
|
|
|
//Temp files storage path
|
|
|
|
tmpUploadPath: 'uploads/tmp/',
|
|
|
|
|
|
|
|
// The session cookie name
|
|
|
|
sessionName: 'connect.sid',
|
|
|
|
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'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
assets: {
|
|
|
|
css: [
|
2016-05-05 19:12:40 +00:00
|
|
|
'public/modules/**/css/*.css',
|
2016-06-08 22:39:46 +00:00
|
|
|
'!public/modules/**/demo/**/*.css',
|
|
|
|
'!public/modules/**/dist/**/*.css',
|
|
|
|
'!public/modules/**/node_modules/**/*.css'
|
2015-06-29 22:51:29 +00:00
|
|
|
],
|
|
|
|
js: [
|
2016-05-05 19:12:40 +00:00
|
|
|
'public/config.js',
|
|
|
|
'public/application.js',
|
2016-06-08 23:12:48 +00:00
|
|
|
'public/dist/populate_template_cache.js',
|
2015-06-29 22:51:29 +00:00
|
|
|
'public/modules/*/*.js',
|
2016-06-08 23:42:46 +00:00
|
|
|
'public/modules/*/*/*/*/*.js',
|
2016-05-05 19:12:40 +00:00
|
|
|
'public/modules/*/*/*.js',
|
2016-06-08 22:39:46 +00:00
|
|
|
'public/modules/*/*/*/*.js',
|
|
|
|
'!public/modules/**/gruntfile.js',
|
|
|
|
'!public/modules/**/demo/**/*.js',
|
|
|
|
'!public/modules/**/dist/**/*.js',
|
|
|
|
'!public/modules/**/node_modules/**/*.js',
|
|
|
|
'!public/modules/**/tests/**/*.js'
|
2015-06-29 22:51:29 +00:00
|
|
|
],
|
2016-06-09 03:32:33 +00:00
|
|
|
form_js: [
|
2017-03-27 20:32:06 +00:00
|
|
|
'public/form-config.js',
|
|
|
|
'public/form-application.js',
|
|
|
|
'public/dist/form_populate_template_cache.js',
|
2016-06-20 22:06:41 +00:00
|
|
|
'public/form_modules/forms/*.js',
|
|
|
|
'public/form_modules/forms/*/*/*/*.js',
|
|
|
|
'public/form_modules/forms/*/*.js',
|
|
|
|
'public/form_modules/forms/*/*/*.js'
|
2016-06-09 03:32:33 +00:00
|
|
|
],
|
2015-08-21 00:17:14 +00:00
|
|
|
views: [
|
2016-06-08 22:39:46 +00:00
|
|
|
'public/modules/**/*.html',
|
|
|
|
'!public/modules/**/demo/**/*.html',
|
|
|
|
'!public/modules/**/dist/**/*.html',
|
|
|
|
'!public/modules/**/node_modules/**/*.html',
|
|
|
|
'!public/modules/**/tests/**/*.html'
|
2015-08-21 00:17:14 +00:00
|
|
|
],
|
2015-08-25 21:33:52 +00:00
|
|
|
unit_tests: [
|
2015-06-29 22:51:29 +00:00
|
|
|
'public/lib/angular-mocks/angular-mocks.js',
|
2016-05-05 19:12:40 +00:00
|
|
|
'public/modules/*/tests/unit/**/*.js',
|
|
|
|
'!public/modules/**/demo/**/*.js',
|
|
|
|
'!public/modules/**/node_modules/**/*.js'
|
2015-08-25 21:33:52 +00:00
|
|
|
],
|
|
|
|
e2e_tests: [
|
2016-05-05 19:12:40 +00:00
|
|
|
'public/modules/*/tests/e2e/**.js',
|
|
|
|
'!public/modules/**/demo/**/*.js',
|
|
|
|
'!public/modules/**/node_modules/**/*.js'
|
2016-06-09 03:32:33 +00:00
|
|
|
],
|
|
|
|
form_unit_tests: [
|
|
|
|
'public/lib/angular-mocks/angular-mocks.js',
|
|
|
|
'public/form_modules/*/tests/unit/**/*.js',
|
|
|
|
'!public/form_modules/**/demo/**/*.js',
|
|
|
|
'!public/form_modules/**/node_modules/**/*.js'
|
|
|
|
],
|
|
|
|
form_e2e_tests: [
|
|
|
|
'public/form_modules/*/tests/e2e/**.js',
|
|
|
|
'!public/form_modules/**/demo/**/*.js',
|
|
|
|
'!public/form_modules/**/node_modules/**/*.js'
|
2015-06-29 22:51:29 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
};
|