16 lines
413 B
Plaintext
16 lines
413 B
Plaintext
# Clients in the local datacenter
|
|
<% @clients.each do |client| -%>
|
|
user <%= client %>
|
|
topic readwrite cdn/<%= @dc %>/purge
|
|
topic read cdn/+/purge
|
|
|
|
<% end -%>
|
|
# Bridge queues to other datacenters
|
|
<% @bridges.each do |remote_dc, bridge_config| -%>
|
|
user <%= bridge_config['address'] %>
|
|
topic readwrite cdn/<%= @remote_dc %>/purge
|
|
|
|
<% end -%>
|
|
# This affects all clients.
|
|
pattern write $SYS/broker/connection/%c/state
|