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:
parent
8cd01fe99e
commit
6ae9143c22
33 changed files with 42 additions and 33 deletions
9
server/lib/config.js
Normal file
9
server/lib/config.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
"use strict";
|
||||
|
||||
const config = require('config');
|
||||
|
||||
if (!config.roles) {
|
||||
config.roles = config.defaultRoles;
|
||||
}
|
||||
|
||||
module.exports = config;
|
Loading…
Add table
Add a link
Reference in a new issue