Added abstraction layer around config.

`roles` in config renamed to `defaultRoles`. These are used if no `roles` are provided in production.yaml
This commit is contained in:
Tomas Bures 2019-07-26 20:35:49 +05:30
parent 8cd01fe99e
commit 6ae9143c22
33 changed files with 42 additions and 33 deletions

9
server/lib/config.js Normal file
View file

@ -0,0 +1,9 @@
"use strict";
const config = require('config');
if (!config.roles) {
config.roles = config.defaultRoles;
}
module.exports = config;