qualiteer/lib/rabbit/rabbit-workers.js

15 lines
390 B
JavaScript
Raw Normal View History

2022-05-05 20:30:24 +00:00
import Rabbiteer from "rabbiteer";
import workers from "./workers/index.js";
// Pull Environment Variables
const { RABBIT_HOST: host, RABBIT_USER: user, RABBIT_PASS: pass } = process.env;
// Rabbit Config
const rabbitConfig = {
host: host ?? "localhost",
user: user ?? "rabbit",
pass: pass ?? "rabbit",
};
export default new Rabbiteer(null, workers, { autoRabbit: rabbitConfig });