mirror of
https://github.com/nttgin/BGPalerter.git
synced 2024-05-19 06:50:08 +00:00
17 lines
402 B
JavaScript
17 lines
402 B
JavaScript
import MonitorHijack from "./monitors/monitorHijack";
|
|
import yaml from "js-yaml";
|
|
import fs from "fs";
|
|
|
|
const configFile = yaml.safeLoad(fs.readFileSync('./config.yml', 'utf8'));
|
|
|
|
const config = {
|
|
monitors: [
|
|
{
|
|
class: MonitorHijack,
|
|
channel: "hijack",
|
|
name: "basic-hijack-detection"
|
|
}
|
|
]
|
|
};
|
|
|
|
module.exports = Object.assign(config, configFile); |