emqx_modules.conf 908 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. delayed {
  2. enable = true
  3. ## 0 is no limit
  4. max_delayed_messages = 0
  5. }
  6. observer_cli {
  7. enable = true
  8. }
  9. telemetry {
  10. enable = true
  11. }
  12. event_message {
  13. "$event/client_connected" = true
  14. "$event/client_disconnected" = true
  15. # "$event/client_subscribed": false
  16. # "$event/client_unsubscribed": false
  17. # "$event/message_delivered": false
  18. # "$event/message_acked": false
  19. # "$event/message_dropped": false
  20. }
  21. topic_metrics: [
  22. #{topic: "test/1"}
  23. ]
  24. rewrite: [
  25. # {
  26. # action = publish
  27. # source_topic = "x/#"
  28. # re = "^x/y/(.+)$"
  29. # dest_topic = "z/y/$1"
  30. # },
  31. # {
  32. # action = subscribe
  33. # source_topic = "x1/#"
  34. # re = "^x1/y/(.+)$"
  35. # dest_topic = "z1/y/$1"
  36. # },
  37. # {
  38. # action = all
  39. # source_topic = "x2/#"
  40. # re = "^x2/y/(.+)$"
  41. # dest_topic = "z2/y/$1"
  42. # }
  43. ]