##==================================================================== ## Configuration for EMQ X MQTT Broker Bridge ##==================================================================== ##-------------------------------------------------------------------- ## Bridges to ast ##-------------------------------------------------------------------- ## Bridge address: node name for local bridge, host:port for remote. ## ## Value: String ## Example: emqx@127.0.0.1, 127.0.0.1:1883 bridge.mqtt.ast.address = 190.208.33.200:1883 ## Protocol version of the bridge. ## ## Value: Enum ## - mqttv5 ## - mqttv4 ## - mqttv3 bridge.mqtt.ast.proto_ver = mqttv4 ## Start type of the bridge. ## ## Value: enum ## manual ## auto bridge.mqtt.ast.start_type = auto ## Whether to enable bridge mode for mqtt bridge ## ## This option is prepared for the mqtt broker which does not ## support bridge_mode such as the mqtt-plugin of the rabbitmq ## ## Value: boolean bridge.mqtt.ast.bridge_mode = true ## The ClientId of a remote bridge. ## ## Value: String bridge.mqtt.ast.clientid = bridge_SN001 ## The Clean start flag of a remote bridge. ## ## Value: boolean ## Default: true ## ## NOTE: Some IoT platforms require clean_start ## must be set to 'true' bridge.mqtt.ast.clean_start = true ## The username for a remote bridge. ## ## Value: String bridge.mqtt.ast.username = SN001 ## The password for a remote bridge. ## ## Value: String bridge.mqtt.ast.password = ast_root2020 ## Topics that need to be forward to AWS IoTHUB ## ## Value: String ## Example: topic1/#,topic2/# bridge.mqtt.ast.forwards = Weather/EC001/Data,Genpack/Data ## Forward messages to the mountpoint of an AWS IoTHUB ## ## Value: String bridge.mqtt.ast.forward_mountpoint = SN001/ ## Need to subscribe to AWS topics ## ## Value: String ## bridge.mqtt.ast.subscription.1.topic = command ## Need to subscribe to AWS topics QoS. ## ## Value: Number ## bridge.mqtt.ast.subscription.1.qos = 0 ## A mountpoint that receives messages from AWS IoTHUB ## ## Value: String ## bridge.mqtt.ast.receive_mountpoint = receive/ast/ ## Bribge to remote server via SSL. ## ## Value: on | off bridge.mqtt.ast.ssl = off ## PEM-encoded CA certificates of the bridge. ## ## Value: File bridge.mqtt.ast.cacertfile = etc/certs/cacert.pem ## Client SSL Certfile of the bridge. ## ## Value: File bridge.mqtt.ast.certfile = etc/certs/client-cert.pem ## Client SSL Keyfile of the bridge. ## ## Value: File bridge.mqtt.ast.keyfile = etc/certs/client-key.pem ## SSL Ciphers used by the bridge. ## ## Value: String bridge.mqtt.ast.ciphers = ECDHE-ECDSA-AES256-GCM-SHA384,ECDHE-RSA-AES256-GCM-SHA384 ## Ciphers for TLS PSK. ## Note that 'bridge.${BridgeName}.ciphers' and 'bridge.${BridgeName}.psk_ciphers' cannot ## be configured at the same time. ## See 'https://tools.ietf.org/html/rfc4279#section-2'. bridge.mqtt.ast.psk_ciphers = PSK-AES128-CBC-SHA,PSK-AES256-CBC-SHA,PSK-3DES-EDE-CBC-SHA,PSK-RC4-SHA ## Ping interval of a down bridge. ## ## Value: Duration ## Default: 10 seconds bridge.mqtt.ast.keepalive = 60s ## TLS versions used by the bridge. ## ## Value: String bridge.mqtt.ast.tls_versions = tlsv1.2,tlsv1.1,tlsv1 ## Bridge reconnect time. ## ## Value: Duration ## Default: 30 seconds bridge.mqtt.ast.reconnect_interval = 30s ## Retry interval for bridge QoS1 message delivering. ## ## Value: Duration bridge.mqtt.ast.retry_interval = 20s ## Publish messages in batches, only RPC Bridge supports ## ## Value: Integer ## default: 32 bridge.mqtt.ast.batch_size = 32 ## Inflight size. ## ## Value: Integer bridge.mqtt.ast.max_inflight_size = 32 ## Base directory for replayq to store messages on disk ## If this config entry is missing or set to undefined, ## replayq works in a mem-only manner. ## ## Value: String bridge.mqtt.ast.queue.replayq_dir = data/emqx_ast_bridge/ ## Replayq segment size ## ## Value: Bytesize bridge.mqtt.ast.queue.replayq_seg_bytes = 10MB ## Replayq max total size ## ## Value: Bytesize bridge.mqtt.ast.queue.max_total_size = 5GB