Skip to content

Instantly share code, notes, and snippets.

@jeremyquinton
Created November 22, 2013 12:46
Show Gist options
  • Save jeremyquinton/7599314 to your computer and use it in GitHub Desktop.
Save jeremyquinton/7599314 to your computer and use it in GitHub Desktop.
rabbitmq config
[
{rabbit, [
{tcp_listen_options, [binary, {packet,raw},
{reuseaddr,true},
{backlog,128},
{nodelay,true},
{exit_on_close,false},
{keepalive,false}]},
{default_user, <<"guest">>},
{default_pass, <<"guest">>}
]},
{rabbitmq_shovel,
[{shovels,
[{esu_duplication,
[{sources,[{broker, "amqp://"},
{declarations,
[{'queue.declare',
[{queue, <<"esu">>},
durable]},
{'exchange.declare',
[{exchange, <<"dasp">>},
{type, <<"direct">>},
durable]},
{'queue.bind',
[{exchange, <<"dasp">>},
{queue, <<"esu">> },
{routing_key, <<"dasp.esu">>}]}
]}]},
{destinations, [{broker, "amqp://"},
{declarations,
[{'queue.declare',
[{queue, <<"esu2">>},
durable]},
{'exchange.declare',
[{exchange, <<"enterprise_platforms">>},
{type, <<"direct">>},
durable]},
{'queue.bind',
[{exchange, <<"enterprise_platforms">>},
{queue, <<"esu2">>},
{routing_key, <<"dasp.esu2">>}]}
]}]},
{queue, <<"esu">>}
]}
]}
]}
].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment