2024-10-06 12:26:10 +00:00
|
|
|
# Clients in the local datacenter
|
|
|
|
<% @clients.each do |client| -%>
|
2024-10-06 12:44:32 +00:00
|
|
|
user <%= client %>
|
2024-10-06 12:26:10 +00:00
|
|
|
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
|