emqx_web_hook.conf 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. ##====================================================================
  2. ## WebHook
  3. ##====================================================================
  4. ## Webhook URL
  5. ##
  6. ## Value: String
  7. web.hook.url = "http://127.0.0.1:80"
  8. ## HTTP Headers
  9. ##
  10. ## Example:
  11. ## 1. web.hook.headers.content-type = "application/json"
  12. ## 2. web.hook.headers.accept = "*"
  13. ##
  14. ## Value: String
  15. web.hook.headers.content-type = "application/json"
  16. ## The encoding format of the payload field in the HTTP body
  17. ## The payload field only appears in the on_message_publish and on_message_delivered actions
  18. ##
  19. ## Value: plain | base64 | base62
  20. web.hook.body.encoding_of_payload_field = plain
  21. ##--------------------------------------------------------------------
  22. ## PEM format file of CA's
  23. ##
  24. ## Value: File
  25. ## web.hook.ssl.cacertfile = <PEM format file of CA's>
  26. ## Certificate file to use, PEM format assumed
  27. ##
  28. ## Value: File
  29. ## web.hook.ssl.certfile = <Certificate file to use>
  30. ## Private key file to use, PEM format assumed
  31. ##
  32. ## Value: File
  33. ## web.hook.ssl.keyfile = <Private key file to use>
  34. ## Turn on peer certificate verification
  35. ##
  36. ## Value: true | false
  37. ## web.hook.ssl.verify = false
  38. ## If not specified, the server's names returned in server's certificate is validated against
  39. ## what's provided `web.hook.url` config's host part.
  40. ## Setting to 'disable' will make EMQ X ignore unmatched server names.
  41. ## If set with a host name, the server's names returned in server's certificate is validated
  42. ## against this value.
  43. ##
  44. ## Value: String | disable
  45. ## web.hook.ssl.server_name_indication = disable
  46. ## Connection process pool size
  47. ##
  48. ## Value: Number
  49. web.hook.pool_size = 32
  50. ##--------------------------------------------------------------------
  51. ## Hook Rules
  52. ## These configuration items represent a list of events should be forwarded
  53. ##
  54. ## Format:
  55. ## web.hook.rule.<HookName>.<No> = <Spec>
  56. #web.hook.rule.client.connect.1 = "{"action": "on_client_connect"}"
  57. #web.hook.rule.client.connack.1 = "{"action": "on_client_connack"}"
  58. #web.hook.rule.client.connected.1 = "{"action": "on_client_connected"}"
  59. #web.hook.rule.client.disconnected.1 = "{"action": "on_client_disconnected"}"
  60. #web.hook.rule.client.subscribe.1 = "{"action": "on_client_subscribe"}"
  61. #web.hook.rule.client.unsubscribe.1 = "{"action": "on_client_unsubscribe"}"
  62. #web.hook.rule.session.subscribed.1 = "{"action": "on_session_subscribed"}"
  63. #web.hook.rule.session.unsubscribed.1 = "{"action": "on_session_unsubscribed"}"
  64. #web.hook.rule.session.terminated.1 = "{"action": "on_session_terminated"}"
  65. #web.hook.rule.message.publish.1 = "{"action": "on_message_publish"}"
  66. #web.hook.rule.message.delivered.1 = "{"action": "on_message_delivered"}"
  67. #web.hook.rule.message.acked.1 = ""{"action": "on_message_acked"}"