13 lines
294 B
JavaScript
13 lines
294 B
JavaScript
|
const path = require("path");
|
||
|
const Confini = require("confini").Config;
|
||
|
|
||
|
const log = require("./log");
|
||
|
|
||
|
const config = new Confini(path.join(__dirname, "../config"));
|
||
|
|
||
|
config.process();
|
||
|
config.override(process.env, "CIC_");
|
||
|
log.debug(config.store, "confini loaded");
|
||
|
|
||
|
module.exports = config;
|