Skip to content

Instantly share code, notes, and snippets.

@nomoney4me
Last active November 14, 2018 15:59
Show Gist options
  • Select an option

  • Save nomoney4me/fb4ab61e9de4976ffc8e2ad1ae12e797 to your computer and use it in GitHub Desktop.

Select an option

Save nomoney4me/fb4ab61e9de4976ffc8e2ad1ae12e797 to your computer and use it in GitHub Desktop.
const config = require('./config.json')
let url = `amqp://${config.AMQP_USER}:${config.AMQP_PASS}@${config.AMQP_HOST}:${config.AMQP_PORT}`;
let rabbitMQDetails = {
url: url,
exchange: config.AMQP_SEND_EXCHANGE,
exchangeType: config.AMQP_TOPIC,
routingKey: '',
};
{
"AMQP_HOST": "http://testing.com",
"AMQP_PORT": "80",
"AMQP_USER": "foo",
"AMQP_PASS": "bar",
"AMQP_SEND_EXCHANGE": "something goes here",
"AMQP_TOPIC": "something else"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment