|
@@ -54,7 +54,7 @@ node.max_ets_tables = 256000
|
|
|
node.fullsweep_after = 1000
|
|
node.fullsweep_after = 1000
|
|
|
|
|
|
|
|
## Crash dump
|
|
## Crash dump
|
|
|
-node.crash_dump = log/crash.dump
|
|
|
|
|
|
|
+node.crash_dump = {{ platform_log_dir }}/crash.dump
|
|
|
|
|
|
|
|
## Distributed node ticktime
|
|
## Distributed node ticktime
|
|
|
node.dist_net_ticktime = 60
|
|
node.dist_net_ticktime = 60
|
|
@@ -68,7 +68,7 @@ node.dist_listen_max = 6369
|
|
|
##--------------------------------------------------------------------
|
|
##--------------------------------------------------------------------
|
|
|
|
|
|
|
|
## Set the log dir
|
|
## Set the log dir
|
|
|
-log.dir = log
|
|
|
|
|
|
|
+log.dir = {{ platform_log_dir }}
|
|
|
|
|
|
|
|
## Console log. Enum: off, file, console, both
|
|
## Console log. Enum: off, file, console, both
|
|
|
log.console = console
|
|
log.console = console
|
|
@@ -83,15 +83,15 @@ log.syslog = on
|
|
|
log.syslog.level = error
|
|
log.syslog.level = error
|
|
|
|
|
|
|
|
## Console log file
|
|
## Console log file
|
|
|
-## log.console.file = log/console.log
|
|
|
|
|
|
|
+## log.console.file = {{ platform_log_dir }}/console.log
|
|
|
|
|
|
|
|
## Error log file
|
|
## Error log file
|
|
|
-log.error.file = log/error.log
|
|
|
|
|
|
|
+log.error.file = {{ platform_log_dir }}/error.log
|
|
|
|
|
|
|
|
## Enable the crash log. Enum: on, off
|
|
## Enable the crash log. Enum: on, off
|
|
|
log.crash = on
|
|
log.crash = on
|
|
|
|
|
|
|
|
-log.crash.file = log/crash.log
|
|
|
|
|
|
|
+log.crash.file = {{ platform_log_dir }}/crash.log
|
|
|
|
|
|
|
|
##--------------------------------------------------------------------
|
|
##--------------------------------------------------------------------
|
|
|
## Allow Anonymous and Default ACL
|
|
## Allow Anonymous and Default ACL
|
|
@@ -104,7 +104,7 @@ mqtt.allow_anonymous = true
|
|
|
mqtt.acl_nomatch = allow
|
|
mqtt.acl_nomatch = allow
|
|
|
|
|
|
|
|
## Default ACL File
|
|
## Default ACL File
|
|
|
-mqtt.acl_file = etc/acl.conf
|
|
|
|
|
|
|
+mqtt.acl_file = {{ platform_etc_dir }}/acl.conf
|
|
|
|
|
|
|
|
## Cache ACL for PUBLISH
|
|
## Cache ACL for PUBLISH
|
|
|
mqtt.cache_acl = true
|
|
mqtt.cache_acl = true
|
|
@@ -119,6 +119,9 @@ mqtt.max_clientid_len = 1024
|
|
|
## Max Packet Size Allowed, 64K by default.
|
|
## Max Packet Size Allowed, 64K by default.
|
|
|
mqtt.max_packet_size = 64KB
|
|
mqtt.max_packet_size = 64KB
|
|
|
|
|
|
|
|
|
|
+## Check Websocket Protocol Header. Enum: on, off
|
|
|
|
|
+mqtt.websocket_protocol_header = on
|
|
|
|
|
+
|
|
|
##--------------------------------------------------------------------
|
|
##--------------------------------------------------------------------
|
|
|
## MQTT Connection
|
|
## MQTT Connection
|
|
|
##--------------------------------------------------------------------
|
|
##--------------------------------------------------------------------
|
|
@@ -188,7 +191,7 @@ mqtt.mqueue.type = simple
|
|
|
|
|
|
|
|
## Max queue length. Enqueued messages when persistent client disconnected,
|
|
## Max queue length. Enqueued messages when persistent client disconnected,
|
|
|
## or inflight window is full. 0 means no limit.
|
|
## or inflight window is full. 0 means no limit.
|
|
|
-mqtt.mqueue.max_length = 0
|
|
|
|
|
|
|
+mqtt.mqueue.max_length = 1000
|
|
|
|
|
|
|
|
## Low-water mark of queued messages
|
|
## Low-water mark of queued messages
|
|
|
mqtt.mqueue.low_watermark = 20%
|
|
mqtt.mqueue.low_watermark = 20%
|
|
@@ -229,10 +232,10 @@ mqtt.bridge.ping_down_interval = 1
|
|
|
##-------------------------------------------------------------------
|
|
##-------------------------------------------------------------------
|
|
|
|
|
|
|
|
## Dir of plugins' config
|
|
## Dir of plugins' config
|
|
|
-mqtt.plugins.etc_dir =etc/plugins/
|
|
|
|
|
|
|
+mqtt.plugins.etc_dir ={{ platform_etc_dir }}/plugins/
|
|
|
|
|
|
|
|
## File to store loaded plugin names.
|
|
## File to store loaded plugin names.
|
|
|
-mqtt.plugins.loaded_file = data/loaded_plugins
|
|
|
|
|
|
|
+mqtt.plugins.loaded_file = {{ platform_data_dir }}/loaded_plugins
|
|
|
|
|
|
|
|
##--------------------------------------------------------------------
|
|
##--------------------------------------------------------------------
|
|
|
## MQTT Listeners
|
|
## MQTT Listeners
|
|
@@ -354,9 +357,9 @@ listener.ssl.external.keyfile = certs/key.pem
|
|
|
|
|
|
|
|
listener.ssl.external.certfile = certs/cert.pem
|
|
listener.ssl.external.certfile = certs/cert.pem
|
|
|
|
|
|
|
|
-## listener.ssl.external.cacertfile = certs/cacert.pem
|
|
|
|
|
|
|
+## listener.ssl.external.cacertfile = {{ platform_etc_dir }}/certs/cacert.pem
|
|
|
|
|
|
|
|
-## listener.ssl.external.dhfile = certs/dh-params.pem
|
|
|
|
|
|
|
+## listener.ssl.external.dhfile = {{ platform_etc_dir }}/certs/dh-params.pem
|
|
|
|
|
|
|
|
## listener.ssl.external.verify = verify_peer
|
|
## listener.ssl.external.verify = verify_peer
|
|
|
|
|
|
|
@@ -437,12 +440,23 @@ listener.wss.external.keyfile = certs/key.pem
|
|
|
|
|
|
|
|
listener.wss.external.certfile = certs/cert.pem
|
|
listener.wss.external.certfile = certs/cert.pem
|
|
|
|
|
|
|
|
-## listener.wss.external.cacertfile = certs/cacert.pem
|
|
|
|
|
|
|
+## listener.wss.external.cacertfile = {{ platform_etc_dir }}/certs/cacert.pem
|
|
|
|
|
|
|
|
## listener.wss.external.verify = verify_peer
|
|
## listener.wss.external.verify = verify_peer
|
|
|
|
|
|
|
|
## listener.wss.external.fail_if_no_peer_cert = true
|
|
## listener.wss.external.fail_if_no_peer_cert = true
|
|
|
|
|
|
|
|
|
|
+##--------------------------------------------------------------------
|
|
|
|
|
+## HTTP Management API Listener
|
|
|
|
|
+
|
|
|
|
|
+listener.api.mgmt = 127.0.0.1:8080
|
|
|
|
|
+
|
|
|
|
|
+listener.api.mgmt.acceptors = 4
|
|
|
|
|
+
|
|
|
|
|
+listener.api.mgmt.max_clients = 64
|
|
|
|
|
+
|
|
|
|
|
+listener.api.mgmt.access.1 = allow all
|
|
|
|
|
+
|
|
|
##-------------------------------------------------------------------
|
|
##-------------------------------------------------------------------
|
|
|
## System Monitor
|
|
## System Monitor
|
|
|
##-------------------------------------------------------------------
|
|
##-------------------------------------------------------------------
|