Fix rabbit configuration without cluster
This commit is contained in:
parent
d23a264bd3
commit
917709f3d3
@ -2,12 +2,16 @@
|
||||
% Template Path: <%= module_name %>/templates/rabbitmq.config
|
||||
[
|
||||
<% if config_cluster -%>
|
||||
{rabbit, [{cluster_nodes, [<%= cluster_disk_nodes.map { |n| "\'rabbit@#{n}\'" }.join(', ') %>]}]}
|
||||
<% end -%>
|
||||
<% if config_stomp -%>
|
||||
% Configure the Stomp Plugin listening port
|
||||
,{rabbitmq_stomp, [{tcp_listeners, [<%= stomp_port %>]} ]}
|
||||
{rabbit, [{cluster_nodes, [<%= cluster_disk_nodes.map { |n| "\'rabbit@#{n}\'" }.join(', ') %>]}]}
|
||||
<% if config_stomp -%>
|
||||
% Configure the Stomp Plugin listening port
|
||||
,{rabbitmq_stomp, [{tcp_listeners, [<%= stomp_port %>]} ]}
|
||||
<% end -%>
|
||||
<% else -%>
|
||||
<% if config_stomp -%>
|
||||
% Configure the Stomp Plugin listening port
|
||||
{rabbitmq_stomp, [{tcp_listeners, [<%= stomp_port %>]} ]}
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
].
|
||||
% EOF
|
||||
|
Loading…
Reference in New Issue
Block a user