Skip to content
Snippets Groups Projects

Resolve "Add dynamic configuration files"

Merged Markus Grigull requested to merge 27-add-dynamic-configuration-files into develop
9 files
+ 281
140
Compare changes
  • Side-by-side
  • Inline
Files
9
+ 10
26
/**
* File: config.js
* File: default.js
* Author: Markus Grigull <mgrigull@eonerc.rwth-aachen.de>
* Date: 23.06.2016
* Date: 10.05.2018
*
* This file is part of VILLASweb-backend.
*
@@ -19,33 +19,17 @@
* along with VILLASweb-backend. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
'use strict';
module.exports = {
publicDir: '../public',
development: {
port: 4000,
databaseName: 'VILLAS',
databaseURL: 'mongodb://localhost:27017/',
amqpEndpoint: 'amqp://localhost',
amqpUpdateRate: 5,
port: 4000,
secret: 'longsecretislong',
logLevel: 'verbose', // possible values: error, warn, info, verbose or debug
admin: {
username: 'admin',
password: 'admin'
}
},
production: {
databaseName: 'VILLAS',
databaseURL: 'mongodb://database:27017/',
amqpEndpoint: 'amqp://rabbit',
amqpEndpoint: 'amqp://localhost',
amqpUpdateRate: 60,
port: 4000,
secret: 'longsecretislong',
logLevel: 'warn', // possible values: error, warn, info, verbose or debug
logFile: 'villasweb-backend_log.txt',
admin: {
username: 'admin',
password: 'admin'
}
}
logLevel: 'error',
logFile: './log.txt',
publicDir: '../public',
defaultAdmin: false
};
Loading