Initial commit
This commit is contained in:
19
settings/config.js
Normal file
19
settings/config.js
Normal file
@@ -0,0 +1,19 @@
|
||||
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');
|
||||
|
||||
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];
|
||||
}
|
||||
3
settings/private.js
Normal file
3
settings/private.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
'SECRET_KEY': 'gi+u6x&1%*wa8e$)ngeg4v3_h044owr%i8-pao+z(_4-_if%7b'
|
||||
};
|
||||
Reference in New Issue
Block a user