ussd-tg-proxy/src/config.js
Mohammed Sohail 2a42a5882c
release: v0.2.0
updates:

* add tests for most modules
* add confini for loading configs
* add contact spoof check
* add optional webhook support
* add error handling
* add pino logger
* update keyboard regex
2022-01-17 15:35:36 +03:00

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;