devicedriveservice-cloud_dev.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. server:
  2. port: 10042
  3. servlet:
  4. encoding:
  5. charset: UTF-8
  6. force: true
  7. context-path: /devicedrive
  8. compression:
  9. enabled: true
  10. mime-types: application/json,application/xml,text/html,text/xml,text/plain
  11. min-response-size: 2048
  12. logging:
  13. file:
  14. path: log/wookit
  15. level:
  16. root: INFO
  17. "[javax.management]": INFO
  18. "[org.apache.http]": INFO
  19. "[org.apache.tomcat.util.net.NioEndpoint]": INFO
  20. "[sun.rmi]": INFO
  21. "[com.alibaba.nacos]": ERROR
  22. spring:
  23. application:
  24. name: devicedriveservice
  25. cloud:
  26. nacos:
  27. discovery:
  28. server-addr: 192.168.2.92:8848
  29. namespace: dcfebc41-9e80-48bf-9549-65ddbfada876
  30. redis:
  31. host: 192.168.2.92
  32. database: 8
  33. port: 6379
  34. password: Fjc@2025
  35. prefix: cloud_dev:devicedriveservice
  36. jedis:
  37. pool:
  38. max-active: 8
  39. max-wait: -1
  40. max-idle: 8
  41. min-idle: 0
  42. mqtt:
  43. emqx:
  44. endpoint: 192.168.2.92
  45. port: 1883
  46. username: admin
  47. password: fujica0408
  48. subclientid: ${spring.application.name}-subscriber-${random.value}
  49. pubclientid: ${spring.application.name}-publisher-${random.value}
  50. keepaliveinterval: 300
  51. qos: 1
  52. cleansession: true
  53. automaticreconnect: true
  54. completiontimeout: 30000
  55. reconnectInterval: 10000
  56. maxReconnectAttempts: -1
  57. connectionTimeout: 30
  58. baseReconnectDelay: 1000
  59. maxReconnectDelay: 60000
  60. topicdeviceup: device/+/message/up/+
  61. topicdownack: device/+/message/down/+/reply
  62. topicheartbeat: $/device/+/message/up/keep_alive
  63. retry:
  64. enabled: true
  65. maxAttempts: 10
  66. initialInterval: 5000
  67. maxInterval: 60000
  68. multiplier: 2.0
  69. connectionTimeout: 30000
  70. heartbeatInterval: 30000
  71. immediateRetry: true
  72. strategy: EXPONENTIAL_BACKOFF
  73. rocketmq:
  74. name-server: 192.168.16.20:9876;192.168.16.21:9876;192.168.16.22:9876
  75. producer:
  76. group: device-drive-producer
  77. send-message-timeout: 30000
  78. retry-times-when-send-failed: 3
  79. topic:
  80. up:
  81. deviceRecognitionResult: device_recognition_cloud_dev
  82. gateStatus: control_gate_result_cloud_dev
  83. gpioInput: gpio_input_event_cloud_dev
  84. heartbeat: heartbeat_event_cloud_dev
  85. serialData: serial_data_event_cloud_dev
  86. snapshotResult: snapshot_result_event_cloud_dev
  87. reply: device-reply-event_cloud_dev
  88. gpioDeviceStatus: gpio_device_status_cloud_dev
  89. delayTask: device_delay_task_cloud_dev
  90. consumer:
  91. topic:
  92. parkDeviceInfoSync: park-device-info-sync_cloud_dev
  93. deviceCommand: parkauth_device_command_cloud_dev
  94. delayTask: device_delay_task_cloud_dev
  95. group:
  96. parkDeviceInfoSync: park-device-info-sync-group_cloud_dev
  97. deviceCommand: parkauth_device_command_cloud_dev
  98. delayTask: device_delay_task_cloud_dev
  99. device:
  100. auto-register: true
  101. heartbeat-interval: 60
  102. offline-timeout: 300
  103. async:
  104. thread-pool:
  105. common:
  106. core-pool-size: 4
  107. max-pool-size: 16
  108. queue-capacity: 512
  109. name-prefix: async-common-