|
|
@@ -231,6 +231,15 @@ node.fullsweep_after = 1000
|
|
|
## Value: Log file
|
|
|
node.crash_dump = {{ platform_log_dir }}/crash.dump
|
|
|
|
|
|
+## Specify the erlang distributed protocol.
|
|
|
+##
|
|
|
+## Value: Enum
|
|
|
+## - inet_tcp: the default; handles TCP streams with IPv4 addressing.
|
|
|
+## - inet6_tcp: handles TCP with IPv6 addressing.
|
|
|
+##
|
|
|
+## vm.args: -proto_dist inet_tcp
|
|
|
+node.proto_dist = inet_tcp
|
|
|
+
|
|
|
## Sets the net_kernel tick time. TickTime is specified in seconds.
|
|
|
## Notice that all communicating nodes are to have the same TickTime
|
|
|
## value specified.
|
|
|
@@ -695,6 +704,11 @@ listener.tcp.external.tune_buffer = on
|
|
|
## Value: true | false
|
|
|
listener.tcp.external.nodelay = true
|
|
|
|
|
|
+## The SO_REUSEADDR flag for TCP listener.
|
|
|
+##
|
|
|
+## Value: true | false
|
|
|
+listener.tcp.external.reuseaddr = true
|
|
|
+
|
|
|
##--------------------------------------------------------------------
|
|
|
## Internal TCP Listener for MQTT Protocol
|
|
|
|
|
|
@@ -791,6 +805,11 @@ listener.tcp.internal.tune_buffer = on
|
|
|
## Value: true | false
|
|
|
listener.tcp.internal.nodelay = false
|
|
|
|
|
|
+## The SO_REUSEADDR flag for MQTT/TCP Listener.
|
|
|
+##
|
|
|
+## Value: true | false
|
|
|
+listener.tcp.internal.reuseaddr = true
|
|
|
+
|
|
|
##--------------------------------------------------------------------
|
|
|
## MQTT/SSL - External SSL Listener for MQTT Protocol
|
|
|
|
|
|
@@ -1020,10 +1039,15 @@ listener.ssl.external.certfile = {{ platform_etc_dir }}/certs/cert.pem
|
|
|
## Value: true | false
|
|
|
## listener.ssl.external.nodelay = true
|
|
|
|
|
|
+## The SO_REUSEADDR flag for MQTT/SSL Listener.
|
|
|
+##
|
|
|
+## Value: true | false
|
|
|
+listener.ssl.external.reuseaddr = true
|
|
|
+
|
|
|
##--------------------------------------------------------------------
|
|
|
## External WebSocket Listener for MQTT Protocol
|
|
|
|
|
|
-## listener.ws.<name> is the IP address and port that the MQTT/Websocket
|
|
|
+## listener.ws.<name> is the IP address and port that the MQTT/WebSocket
|
|
|
## listener will bind.
|
|
|
##
|
|
|
## Value: IP:Port | Port
|
|
|
@@ -1031,35 +1055,47 @@ listener.ssl.external.certfile = {{ platform_etc_dir }}/certs/cert.pem
|
|
|
## Examples: 8083, 127.0.0.1:8083, ::1:8083
|
|
|
listener.ws.external = 8083
|
|
|
|
|
|
-## The acceptor pool for external MQTT/Websocket listener.
|
|
|
+## The acceptor pool for external MQTT/WebSocket listener.
|
|
|
##
|
|
|
## Value: Number
|
|
|
listener.ws.external.acceptors = 4
|
|
|
|
|
|
-## Maximum number of concurrent MQTT/Websocket connections.
|
|
|
+## Maximum number of concurrent MQTT/WebSocket connections.
|
|
|
##
|
|
|
## Value: Number
|
|
|
listener.ws.external.max_clients = 102400
|
|
|
|
|
|
-## TODO: Zone of the external MQTT/Websocket listener belonged to.
|
|
|
+## TODO: Zone of the external MQTT/WebSocket listener belonged to.
|
|
|
##
|
|
|
## Value: String
|
|
|
## listener.ws.external.zone = external
|
|
|
|
|
|
-## Mountpoint of the MQTT/Websocket Listener.
|
|
|
+## Mountpoint of the MQTT/WebSocket Listener.
|
|
|
##
|
|
|
## See: listener.tcp.<name>.mountpoint
|
|
|
##
|
|
|
## Value: String
|
|
|
## listener.ws.external.mountpoint = external/
|
|
|
|
|
|
-## The access control for the MQTT/Websocket listener.
|
|
|
+## The access control for the MQTT/WebSocket listener.
|
|
|
##
|
|
|
## See: listener.tcp.<name>.access
|
|
|
##
|
|
|
## Value: ACL Rule
|
|
|
listener.ws.external.access.1 = allow all
|
|
|
|
|
|
+## Use X-Forwarded-For header for real source IP if the EMQ cluster is
|
|
|
+## deployed behind NGINX or HAProxy.
|
|
|
+##
|
|
|
+## Value: String
|
|
|
+## listener.ws.external.proxy_address_header = X-Forwarded-For
|
|
|
+
|
|
|
+## Use X-Forwarded-Port header for real source port if the EMQ cluster is
|
|
|
+## deployed behind NGINX or HAProxy.
|
|
|
+##
|
|
|
+## Value: String
|
|
|
+## listener.ws.external.proxy_port_header = X-Forwarded-Port
|
|
|
+
|
|
|
## Enable the Proxy Protocol V1/2 if the EMQ cluster is deployed behind
|
|
|
## HAProxy or Nginx.
|
|
|
##
|
|
|
@@ -1075,37 +1111,37 @@ listener.ws.external.access.1 = allow all
|
|
|
## Value: Duration
|
|
|
## listener.ws.external.proxy_protocol_timeout = 3s
|
|
|
|
|
|
-## The TCP backlog of external MQTT/Websocket Listener.
|
|
|
+## The TCP backlog of external MQTT/WebSocket Listener.
|
|
|
##
|
|
|
## See: listener.tcp.<name>.backlog
|
|
|
##
|
|
|
## Value: Number >= 0
|
|
|
listener.ws.external.backlog = 1024
|
|
|
|
|
|
-## The TCP send timeout for external MQTT/Websocket connections.
|
|
|
+## The TCP send timeout for external MQTT/WebSocket connections.
|
|
|
##
|
|
|
## See: listener.tcp.<name>.send_timeout
|
|
|
##
|
|
|
## Value: Duration
|
|
|
listener.ws.external.send_timeout = 15s
|
|
|
|
|
|
-## Close the MQTT/Websocket connection if send timeout.
|
|
|
+## Close the MQTT/WebSocket connection if send timeout.
|
|
|
##
|
|
|
## See: listener.tcp.<name>.send_timeout_close
|
|
|
##
|
|
|
## Value: on | off
|
|
|
listener.ws.external.send_timeout_close = on
|
|
|
|
|
|
-## The TCP receive buffer(os kernel) for external MQTT/Websocket connections.
|
|
|
+## The TCP receive buffer(os kernel) for external MQTT/WebSocket connections.
|
|
|
##
|
|
|
## See: listener.tcp.<name>.recbuf
|
|
|
##
|
|
|
## Value: Bytes
|
|
|
## listener.ws.external.recbuf = 4KB
|
|
|
|
|
|
-## The TCP send buffer(os kernel) for external MQTT/Websocket connections.
|
|
|
+## The TCP send buffer(os kernel) for external MQTT/WebSocket connections.
|
|
|
##
|
|
|
-## See 'listener.tcp.<name>.sndbuf'
|
|
|
+## See: listener.tcp.<name>.sndbuf
|
|
|
##
|
|
|
## Value: Bytes
|
|
|
## listener.ws.external.sndbuf = 4KB
|
|
|
@@ -1124,17 +1160,22 @@ listener.ws.external.send_timeout_close = on
|
|
|
## Value: on | off
|
|
|
listener.ws.external.tune_buffer = on
|
|
|
|
|
|
-## The TCP_NODELAY flag for external MQTT/Websocket connections.
|
|
|
+## The TCP_NODELAY flag for external MQTT/WebSocket connections.
|
|
|
##
|
|
|
## See: listener.tcp.<name>.nodelay
|
|
|
##
|
|
|
## Value: true | false
|
|
|
listener.ws.external.nodelay = true
|
|
|
|
|
|
+## The SO_REUSEADDR flag for MQTT/WebSocket Listener.
|
|
|
+##
|
|
|
+## Value: true | false
|
|
|
+listener.ws.external.reuseaddr = true
|
|
|
+
|
|
|
##--------------------------------------------------------------------
|
|
|
## External WebSocket/SSL listener for MQTT Protocol
|
|
|
|
|
|
-## listener.wss.<name> is the IP address and port that the MQTT/Websocket/SSL
|
|
|
+## listener.wss.<name> is the IP address and port that the MQTT/WebSocket/SSL
|
|
|
## listener will bind.
|
|
|
##
|
|
|
## Value: IP:Port | Port
|
|
|
@@ -1142,7 +1183,7 @@ listener.ws.external.nodelay = true
|
|
|
## Examples: 8084, 127.0.0.1:8084, ::1:8084
|
|
|
listener.wss.external = 8084
|
|
|
|
|
|
-## The acceptor pool for external MQTT/Websocket/SSL listener.
|
|
|
+## The acceptor pool for external MQTT/WebSocket/SSL listener.
|
|
|
##
|
|
|
## Value: Number
|
|
|
listener.wss.external.acceptors = 4
|
|
|
@@ -1152,25 +1193,35 @@ listener.wss.external.acceptors = 4
|
|
|
## Value: Number
|
|
|
listener.wss.external.max_clients = 64
|
|
|
|
|
|
-## TODO: Zone of the external MQTT/Websocket/SSL listener belonged to.
|
|
|
+## TODO: Zone of the external MQTT/WebSocket/SSL listener belonged to.
|
|
|
##
|
|
|
## Value: String
|
|
|
## listener.wss.external.zone = external
|
|
|
|
|
|
-## Mountpoint of the MQTT/Websocket/SSL Listener.
|
|
|
+## Mountpoint of the MQTT/WebSocket/SSL Listener.
|
|
|
##
|
|
|
-## See 'listener.tcp.<name>.mountpoint'
|
|
|
+## See: listener.tcp.<name>.mountpoint
|
|
|
##
|
|
|
## Value: String
|
|
|
## listener.wss.external.mountpoint = inbound/
|
|
|
|
|
|
-## The access control rules for the MQTT/Websocket/SSL listener.
|
|
|
+## The access control rules for the MQTT/WebSocket/SSL listener.
|
|
|
##
|
|
|
## See: listener.tcp.<name>.access.<no>
|
|
|
##
|
|
|
## Value: ACL Rule
|
|
|
listener.wss.external.access.1 = allow all
|
|
|
|
|
|
+## See: listener.ws.external.proxy_address_header
|
|
|
+##
|
|
|
+## Value: String
|
|
|
+## listener.wss.external.proxy_address_header = X-Forwarded-For
|
|
|
+
|
|
|
+## See: listener.ws.external.proxy_port_header
|
|
|
+##
|
|
|
+## Value: String
|
|
|
+## listener.wss.external.proxy_port_header = X-Forwarded-Port
|
|
|
+
|
|
|
## Enable the Proxy Protocol V1/2 support.
|
|
|
##
|
|
|
## See: listener.tcp.<name>.proxy_protocol
|
|
|
@@ -1260,35 +1311,35 @@ listener.wss.external.certfile = {{ platform_etc_dir }}/certs/cert.pem
|
|
|
## Value: cn | dn
|
|
|
## listener.wss.external.peer_cert_as_username = cn
|
|
|
|
|
|
-## TCP backlog for the Websocket/SSL connection.
|
|
|
+## TCP backlog for the WebSocket/SSL connection.
|
|
|
##
|
|
|
-## See 'listener.tcp.<name>.backlog'
|
|
|
+## See listener.tcp.<name>.backlog
|
|
|
##
|
|
|
## Value: Number >= 0
|
|
|
listener.wss.external.backlog = 1024
|
|
|
|
|
|
-## The TCP send timeout for the Websocket/SSL connection.
|
|
|
+## The TCP send timeout for the WebSocket/SSL connection.
|
|
|
##
|
|
|
-## See 'listener.tcp.<name>.send_timeout'
|
|
|
+## See: listener.tcp.<name>.send_timeout
|
|
|
##
|
|
|
## Value: Duration
|
|
|
listener.wss.external.send_timeout = 15s
|
|
|
|
|
|
-## Close the Websocket/SSL connection if send timeout.
|
|
|
+## Close the WebSocket/SSL connection if send timeout.
|
|
|
##
|
|
|
## See: listener.tcp.<name>.send_timeout_close
|
|
|
##
|
|
|
## Value: on | off
|
|
|
listener.wss.external.send_timeout_close = on
|
|
|
|
|
|
-## The TCP receive buffer(os kernel) for the Websocket/SSL connections.
|
|
|
+## The TCP receive buffer(os kernel) for the WebSocket/SSL connections.
|
|
|
##
|
|
|
## See: listener.tcp.<name>.recbuf
|
|
|
##
|
|
|
## Value: Bytes
|
|
|
## listener.wss.external.recbuf = 4KB
|
|
|
|
|
|
-## The TCP send buffer(os kernel) for the Websocket/SSL connections.
|
|
|
+## The TCP send buffer(os kernel) for the WebSocket/SSL connections.
|
|
|
##
|
|
|
## See: listener.tcp.<name>.sndbuf
|
|
|
##
|
|
|
@@ -1302,13 +1353,18 @@ listener.wss.external.send_timeout_close = on
|
|
|
## Value: Bytes
|
|
|
## listener.wss.external.buffer = 4KB
|
|
|
|
|
|
-## The TCP_NODELAY flag for Websocket/SSL connections.
|
|
|
+## The TCP_NODELAY flag for WebSocket/SSL connections.
|
|
|
##
|
|
|
## See: listener.tcp.<name>.nodelay
|
|
|
##
|
|
|
## Value: true | false
|
|
|
## listener.wss.external.nodelay = true
|
|
|
|
|
|
+## The SO_REUSEADDR flag for WebSocket/SSL listener.
|
|
|
+##
|
|
|
+## Value: true | false
|
|
|
+listener.wss.external.reuseaddr = true
|
|
|
+
|
|
|
##--------------------------------------------------------------------
|
|
|
## HTTP Management API Listener
|
|
|
|