adejs/settings/config.js

21 lines
640 B
JavaScript
Raw Normal View History

2017-09-23 11:02:29 +02:00
const join = require('path').join;
module.exports.BASE_DIR = join(__dirname, '..');
module.exports.UTILS_DIR = join(module.exports.BASE_DIR, 'utils');
module.exports.STATIC_DIR = join(module.exports.BASE_DIR, 'static');
2017-09-23 11:39:42 +02:00
module.exports.CONTROLLERS_DIR = join(module.exports.BASE_DIR, 'controllers');
2017-09-23 11:02:29 +02:00
module.exports.DEBUG = true;
module.exports.LISTEN_ADDRESS = '0.0.0.0';
module.exports.PORT = 4000;
module.exports.ADE_BASE_URL =
"https://edt.inp-toulouse.fr/jsp/custom/modules/plannings/anonymous_cal.jsp?"
const privateConf = require('./private.js');
for (let key in privateConf) {
module.exports[key] = privateConf[key];
}