intégration des logiciels tier comme NanoMQ ainsi que les fichiers json de score
This commit is contained in:
102
_software_lib/nanomq-0.22.10/config/nanomq_zmq_gateway.conf
Normal file
102
_software_lib/nanomq-0.22.10/config/nanomq_zmq_gateway.conf
Normal file
@ -0,0 +1,102 @@
|
||||
##====================================================================
|
||||
## Configuration for MQTT ZeroMQ Gateway
|
||||
##====================================================================
|
||||
|
||||
gateway.mqtt {
|
||||
## MQTT Broker address: host:port .
|
||||
##
|
||||
## Value: String
|
||||
## Example: mqtt-tcp://127.0.0.1:1883
|
||||
address="mqtt-tcp://broker.emqx.io:1883"
|
||||
## Need to subscribe to remote broker topics
|
||||
##
|
||||
## Value: String
|
||||
sub_topic="topic/sub"
|
||||
## Protocol version of the mqtt client.
|
||||
##
|
||||
## Value: Enum
|
||||
## - 5: mqttv5
|
||||
## - 4: mqttv4
|
||||
## - 3: mqttv3
|
||||
proto_ver=4
|
||||
## Ping interval of a down mqtt client.
|
||||
##
|
||||
## Value: Duration
|
||||
## Default: 10 seconds
|
||||
keepalive=60
|
||||
## The Clean start flag of mqtt client.
|
||||
##
|
||||
## Value: boolean
|
||||
## Default: true
|
||||
##
|
||||
## NOTE: Some IoT platforms require clean_start
|
||||
## must be set to 'true'
|
||||
clean_start=true
|
||||
## The username for mqtt client.
|
||||
##
|
||||
## Value: String
|
||||
username="username"
|
||||
## The password for mqtt client.
|
||||
##
|
||||
## Value: String
|
||||
password="passwd"
|
||||
## Topics that need to be forward to IoTHUB
|
||||
##
|
||||
## Value: String
|
||||
## Example: topic1/pub
|
||||
forward="topic/pub"
|
||||
## parallel
|
||||
## Handle a specified maximum number of outstanding requests
|
||||
##
|
||||
## Value: 1-infinity
|
||||
parallel=2
|
||||
}
|
||||
gateway.zmq {
|
||||
## ZeroMQ Subscribe address: host:port .
|
||||
##
|
||||
## Value: String
|
||||
## Example: tcp://127.0.0.1:5560
|
||||
sub_address="tcp://127.0.0.1:5560"
|
||||
## ZeroMQ Publish address: host:port .
|
||||
##
|
||||
## Value: String
|
||||
## Example: tcp://127.0.0.1:5559
|
||||
pub_address="tcp://127.0.0.1:5559"
|
||||
## ZeroMQ subscription prefix
|
||||
##
|
||||
## Value: String
|
||||
## Example: sub_prefix
|
||||
sub_pre="sub_prefix"
|
||||
## ZeroMQ publish prefix
|
||||
##
|
||||
## Value: String
|
||||
## Example: pub_prefix
|
||||
pub_pre="pub_prefix"
|
||||
}
|
||||
|
||||
# #============================================================
|
||||
# # Http server
|
||||
# #============================================================
|
||||
http_server {
|
||||
# # http server port
|
||||
# #
|
||||
# # Value: 0 - 65535
|
||||
port = 8082
|
||||
# # parallel for http server
|
||||
# # Handle a specified maximum number of outstanding requests
|
||||
# #
|
||||
# # Value: 1-infinity
|
||||
parallel = 2
|
||||
# # username
|
||||
# #
|
||||
# # Basic authorization
|
||||
# #
|
||||
# # Value: String
|
||||
username = admin
|
||||
# # password
|
||||
# #
|
||||
# # Basic authorization
|
||||
# #
|
||||
# # Value: String
|
||||
password = public
|
||||
}
|
Reference in New Issue
Block a user