rabbitmq.conf 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #
  2. # Copyright 2016-present Pnoker All Rights Reserved
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. # Unless required by applicable law or agreed to in writing, software
  9. # distributed under the License is distributed on an "AS IS" BASIS,
  10. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. # See the License for the specific language governing permissions and
  12. # limitations under the License.
  13. #
  14. ## Networking
  15. listeners.tcp.default = 5672
  16. ## HTTP listener and embedded Web server settings.
  17. management.tcp.port = 15672
  18. ## On first start RabbitMQ will create a vhost and a user. These
  19. ## config items control what gets created.
  20. ## Relevant doc guide: https://rabbitmq.com/access-control.html
  21. ##
  22. default_vhost = dc3
  23. default_user = dc3
  24. default_pass = dc3
  25. # =======================================
  26. # MQTT section
  27. # =======================================
  28. ## TCP listener settings.
  29. mqtt.listeners.tcp.default = :::1883
  30. ## TLS listener settings
  31. mqtt.listeners.ssl.default = 8883
  32. ssl_options.password = dc3-server
  33. ssl_options.cacertfile = /data/rabbitmq/dc3/keys/ca.crt
  34. ssl_options.certfile = /data/rabbitmq/dc3/keys/server.crt
  35. ssl_options.keyfile = /data/rabbitmq/dc3/keys/server.key
  36. ## Set the default user name and password used for anonymous connections (when client
  37. ## provides no credentials). Anonymous connections are highly discouraged!
  38. mqtt.vhost = dc3
  39. mqtt.default_user = dc3
  40. mqtt.default_pass = dc3
  41. mqtt.allow_anonymous = false
  42. ## Specify the exchange to which messages from MQTT clients are published.
  43. mqtt.exchange = dc3.e.mqtt