1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00
Files
nttgin-BGPalerter/config.js

13 lines
296 B
JavaScript
Raw Normal View History

2019-06-14 18:04:20 +02:00
import MonitorHijack from "./monitors/monitorHijack";
2019-06-15 23:06:34 +02:00
import yaml from "js-yaml";
import fs from "fs";
2019-06-14 18:04:20 +02:00
2019-06-15 23:06:34 +02:00
const configFile = yaml.safeLoad(fs.readFileSync('./config.yml', 'utf8'));
2019-06-14 18:04:20 +02:00
2019-06-15 23:06:34 +02:00
const config = {
2019-06-14 18:04:20 +02:00
monitors: [
MonitorHijack
]
2019-06-15 23:06:34 +02:00
};
module.exports = Object.assign(config, configFile);