69 lines
2.3 KiB
Plaintext
69 lines
2.3 KiB
Plaintext
##====================================================================
|
|
## WebHook
|
|
##====================================================================
|
|
|
|
## Webhook URL
|
|
##
|
|
## Value: String
|
|
web.hook.url = "http://127.0.0.1:80"
|
|
|
|
## HTTP Headers
|
|
##
|
|
## Example:
|
|
## 1. web.hook.headers.content-type = "application/json"
|
|
## 2. web.hook.headers.accept = "*"
|
|
##
|
|
## Value: String
|
|
web.hook.headers.content-type = "application/json"
|
|
|
|
## The encoding format of the payload field in the HTTP body
|
|
## The payload field only appears in the on_message_publish and on_message_delivered actions
|
|
##
|
|
## Value: plain | base64 | base62
|
|
web.hook.body.encoding_of_payload_field = plain
|
|
|
|
##--------------------------------------------------------------------
|
|
## PEM format file of CA's
|
|
##
|
|
## Value: File
|
|
## web.hook.ssl.cacertfile = <PEM format file of CA's>
|
|
|
|
## Certificate file to use, PEM format assumed
|
|
##
|
|
## Value: File
|
|
## web.hook.ssl.certfile = <Certificate file to use>
|
|
|
|
## Private key file to use, PEM format assumed
|
|
##
|
|
## Value: File
|
|
## web.hook.ssl.keyfile = <Private key file to use>
|
|
|
|
## Turn on peer certificate verification
|
|
##
|
|
## Value: true | false
|
|
## web.hook.ssl.verify = true
|
|
|
|
## Connection process pool size
|
|
##
|
|
## Value: Number
|
|
web.hook.pool_size = 32
|
|
|
|
##--------------------------------------------------------------------
|
|
## Hook Rules
|
|
## These configuration items represent a list of events should be forwarded
|
|
##
|
|
## Format:
|
|
## web.hook.rule.<HookName>.<No> = <Spec>
|
|
#web.hook.rule.client.connect.1 = "{"action": "on_client_connect"}"
|
|
#web.hook.rule.client.connack.1 = "{"action": "on_client_connack"}"
|
|
#web.hook.rule.client.connected.1 = "{"action": "on_client_connected"}"
|
|
#web.hook.rule.client.disconnected.1 = "{"action": "on_client_disconnected"}"
|
|
#web.hook.rule.client.subscribe.1 = "{"action": "on_client_subscribe"}"
|
|
#web.hook.rule.client.unsubscribe.1 = "{"action": "on_client_unsubscribe"}"
|
|
#web.hook.rule.session.subscribed.1 = "{"action": "on_session_subscribed"}"
|
|
#web.hook.rule.session.unsubscribed.1 = "{"action": "on_session_unsubscribed"}"
|
|
#web.hook.rule.session.terminated.1 = "{"action": "on_session_terminated"}"
|
|
#web.hook.rule.message.publish.1 = "{"action": "on_message_publish"}"
|
|
#web.hook.rule.message.delivered.1 = "{"action": "on_message_delivered"}"
|
|
#web.hook.rule.message.acked.1 = ""{"action": "on_message_acked"}"
|