## Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved. ## ## Entgra (Pvt) Ltd. licenses this file to you under the Apache License, ## Version 2.0 (the "License"); you may not use this file except ## in compliance with the License. ## You may obtain a copy of the License at ## ## http://www.apache.org/licenses/LICENSE-2.0 ## ## Unless required by applicable law or agreed to in writing, ## software distributed under the License is distributed on an ## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ## KIND, either express or implied. See the License for the ## specific language governing permissions and limitations ## under the License. ##==================================================================== ## EMQX Hooks ##==================================================================== ## The default value or action will be returned, while the request to ## the gRPC server failed or no available grpc server running. ## ## Default: deny ## Value: ignore | deny #exhook.request_failed_action = deny ## The timeout to request grpc server ## ## Default: 5s ## Value: Duration #exhook.request_timeout = 5s ## Whether to automatically reconnect (initialize) the gRPC server ## ## When gRPC is not available, exhook tries to request the gRPC service at ## that interval and reinitialize the list of mounted hooks. ## ## Default: false ## Value: false | Duration #exhook.auto_reconnect = 60s ## The process pool size for gRPC client ## ## Default: Equals cpu cores ## Value: Integer #exhook.pool_size = 16 ## The exhook execution priority on the Chain of the emqx hooks. ## ## Modify the field to fix the exhook execute order before/after other plugins/modules. ## By default, most hooks registered by plugins or modules have a priority of 0. ## ## With the same priority of 0, the execute order depends on hookpoints mount order. ## Scilicet is the loaded order of plugins/ modules. ## ## Default: 0 ## Value: Integer #exhook.hook_priority = 0 ##-------------------------------------------------------------------- ## The Hook callback servers ## The gRPC server url ## ## exhook.server.$name.url = url() exhook.server.default.url = http://${SERVER_HOSTNAME}:9000 #exhook.server.default.ssl.cacertfile = etc/certs/cacert.pem #exhook.server.default.ssl.certfile = etc/certs/cert.pem #exhook.server.default.ssl.keyfile = etc/certs/key.pem ## Enables/disables periodic transmission on a connected socket when no other data is exchanged. ## If the other end does not respond, the connection is considered broken and an error message is sent to the controlling process. ## ## Default: true #exhook.server.default.socket_options.keepalive = true ## If true, option TCP_NODELAY is turned on for the socket, which means that also small amounts of data are sent immediately. ## ## Default: true #exhook.server.default.socket_options.nodelay = true ## The minimum size of the receive buffer to use for the socket. #exhook.server.default.socket_options.recbuf = 64KB ## The minimum size of the send buffer to use for the socket. #exhook.server.default.socket_options.sndbuf = 16KB