2024-10-06 12:50:07 +00:00
|
|
|
listener 8883
|
2024-10-10 08:17:39 +00:00
|
|
|
cafile /etc/mosquitto/ca_certificates/chain.pem
|
|
|
|
certfile /etc/mosquitto/certs/cert.pem
|
|
|
|
keyfile /etc/mosquitto/certs/privkey.pem
|
2024-10-06 12:50:07 +00:00
|
|
|
require_certificate true
|
|
|
|
use_identity_as_username true
|
|
|
|
acl_file /etc/mosquitto/aclfile
|
|
|
|
|
|
|
|
log_type all
|
|
|
|
|
|
|
|
<% @bridges.each do |remote_dc, bridge_config| -%>
|
|
|
|
connection <%= @dc %>-to-<%= remote_dc %>
|
2024-10-10 08:23:55 +00:00
|
|
|
address <%= bridge_config['address'] %>:<%= bridge_config['port'] %>:
|
2024-10-06 12:50:07 +00:00
|
|
|
topic cdn/<%= @dc %>/purge out 1
|
2024-10-10 08:17:39 +00:00
|
|
|
bridge_cafile /usr/local/share/ca-certificates/step_ca_root.crt
|
|
|
|
bridge_certfile /etc/mosquitto/certs/cert.pem
|
|
|
|
bridge_keyfile /etc/mosquitto/certs/privkey.pem
|
2024-10-06 12:50:07 +00:00
|
|
|
|
|
|
|
<% end -%>
|