-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
61 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
'use strict'; | ||
|
||
const contactEmail = | ||
process.env.CONTACT_EMAIL || | ||
process.env.MAILER_ADMIN || | ||
'[email protected]'; | ||
const contactEmail = process.env.CONTACT_EMAIL || '[email protected]'; | ||
|
||
module.exports = { | ||
mode: 'production', | ||
|
||
// The port to use for the application (defaults to the environment variable if present) | ||
port: process.env.PORT || 3001, | ||
port: 3000, | ||
|
||
// Basic title and instance name | ||
app: { | ||
|
@@ -18,7 +14,7 @@ module.exports = { | |
description: 'Node REST app', | ||
clientUrl: 'http://localhost/#', | ||
helpUrl: 'http://localhost/#/help', | ||
contactEmail: contactEmail | ||
contactEmail: '[email protected]' | ||
}, | ||
|
||
/** | ||
|
@@ -43,6 +39,17 @@ module.exports = { | |
socketio: { | ||
ignoreOlderThan: 600 | ||
}, | ||
// Use the following for local eventEmitter | ||
publishProvider: './src/app/common/event/event-publish.provider', | ||
socketProvider: './src/app/common/sockets/event-socket.provider', | ||
|
||
messages: { | ||
topic: 'message.posted' | ||
}, | ||
|
||
pages: { | ||
topic: 'page.updated' | ||
}, | ||
|
||
cors: { | ||
enabled: false, | ||
|
@@ -126,7 +133,7 @@ module.exports = { | |
autoLogin: false, | ||
autoCreateAccounts: false, | ||
defaultRoles: {}, | ||
// requiredRoles: ['ROLE'], | ||
requiredRoles: [], | ||
|
||
roles: ['user', 'editor', 'auditor', 'admin'], | ||
roleStrategy: 'local', // 'local' || 'external' || 'hybrid' | ||
|
@@ -210,21 +217,26 @@ module.exports = { | |
*/ | ||
maxCountTimeMS: 5000, | ||
|
||
// configures mongo TTL index. Overriding these may require dropping existing index | ||
notificationExpires: 15552000, // 180 days | ||
auditExpires: 15552000, //180 days | ||
feedbackExpires: 15552000, // 180 days | ||
|
||
/** | ||
* Environment Settings | ||
*/ | ||
|
||
// Configuration for outgoing mail server / service | ||
mailer: { | ||
from: process.env.MAILER_FROM || '[email protected]', | ||
from: '[email protected]', | ||
provider: './src/app/core/email/providers/smtp-email.provider', | ||
options: { | ||
host: process.env.MAILER_SERVICE_PROVIDER || 'gmail', | ||
host: 'gmail', | ||
port: 587, | ||
secure: false, // true for 465, false for other ports | ||
auth: { | ||
user: process.env.MAILER_EMAIL_ID || '[email protected]', | ||
pass: process.env.MAILER_PASSWORD || 'PASSWORD' | ||
user: '[email protected]', | ||
pass: 'PASSWORD' | ||
} | ||
} | ||
/* | ||
|
@@ -321,23 +333,6 @@ module.exports = { | |
|
||
siteEmails: {}, | ||
|
||
// Use the following for local eventEmitter | ||
publishProvider: './src/app/common/event/event-publish.provider', | ||
socketProvider: './src/app/common/sockets/event-socket.provider', | ||
|
||
messages: { | ||
topic: 'message.posted' | ||
}, | ||
|
||
pages: { | ||
topic: 'page.updated' | ||
}, | ||
|
||
// configures mongo TTL index. Overriding these may require dropping existing index | ||
notificationExpires: 15552000, // 180 days | ||
auditExpires: 15552000, //180 days | ||
feedbackExpires: 15552000, // 180 days | ||
|
||
teams: { | ||
implicitMembers: { | ||
/** | ||
|
@@ -365,7 +360,7 @@ module.exports = { | |
*/ | ||
|
||
// Expose server errors to the client (500 errors) | ||
exposeServerErrors: true, | ||
exposeServerErrors: false, | ||
|
||
// Mongoose query logging | ||
mongooseLogging: false, | ||
|
@@ -383,7 +378,7 @@ module.exports = { | |
// Console logger | ||
{ | ||
stream: 'process.stdout', | ||
level: 'info' | ||
level: 'warn' | ||
} //, | ||
// Rotating file logger | ||
//{ | ||
|
@@ -448,7 +443,7 @@ module.exports = { | |
// Copyright footer (shown above the system footer) | ||
copyright: { | ||
// HTML-enabled contents of the banner | ||
html: 'Copyright © 2018 <a href="http://www.asymmetrik.com" target="_blank">Asymmetrik, Ltd</a>. All Rights Reserved.' | ||
html: '© 2024 <a href="http://www.bluehalo.com" target="_blank">BLUEHALO</a>' | ||
}, | ||
|
||
feedback: { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,3 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
|
||
/** | ||
* System Settings | ||
*/ | ||
|
||
|
||
/** | ||
* Environment Settings | ||
*/ | ||
|
||
|
||
/** | ||
* Development/debugging settings | ||
*/ | ||
|
||
// Expose server errors to the client (500 errors) | ||
exposeServerErrors: false, | ||
|
||
// Mongoose query logging | ||
mongooseLogging: false, | ||
|
||
// Express route logging | ||
expressLogging: false, | ||
|
||
|
||
/** | ||
* Logging Settings | ||
*/ | ||
|
||
// Application logging and logstash | ||
logger: { | ||
application: [ | ||
// Console logger | ||
{ | ||
stream: process.stdout, | ||
level: 'warn' | ||
}, | ||
// Rotating file logger | ||
{ | ||
type: 'rotating-file', | ||
level: 'warn', | ||
path: '/var/log/mean2/application.log', | ||
period: '1d', | ||
count: 1 | ||
} | ||
// Logstash logger | ||
// { | ||
// type: 'raw', | ||
// level: 'info', | ||
// stream: logstash.createStream({ | ||
// host: 'localhost', | ||
// port: 4561 | ||
// }) | ||
// } | ||
], | ||
audit: [ | ||
// Console logger (audit logger must be 'info' level) | ||
{ | ||
stream: process.stdout, | ||
level: 'info' | ||
}, | ||
// Rotating file logger | ||
{ | ||
type: 'rotating-file', | ||
level: 'info', | ||
path: '/usr/local/var/log/mean2/audit.log', | ||
period: '1d', | ||
count: 7 | ||
} | ||
] | ||
} | ||
|
||
|
||
/** | ||
* Not So Environment-Specific Settings | ||
*/ | ||
|
||
}; | ||
module.exports = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.