application-pro.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # Copyright 2016-present the IoT DC3 original author or authors.
  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. #
  8. # https://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. # 生产环境配置, 会覆盖 application-*.yml 中配置的内容
  17. driver:
  18. schedule:
  19. # 定时读数据
  20. read:
  21. cron: '0 0/15 * * * ?'
  22. mqtt:
  23. url: ${MQTT_BROKER_URL:tcp://dc3-rabbitmq:1883}
  24. auth-type: USERNAME
  25. username: ${MQTT_USERNAME:dc3}
  26. password: ${MQTT_PASSWORD:dc3}
  27. topic-prefix: dc3/${driver.tenant}/${spring.application.name}/
  28. receive-topics:
  29. - qos: 1
  30. name: data
  31. spring:
  32. rabbitmq:
  33. virtual-host: ${RABBITMQ_VIRTUAL_HOST:dc3}
  34. host: ${RABBITMQ_HOST:dc3-rabbitmq}
  35. port: ${RABBITMQ_PORT:5672}
  36. username: ${RABBITMQ_USERNAME:dc3}
  37. password: ${RABBITMQ_PASSWORD:dc3}