docs: remove `enable` from config examples
Fixes https://emqx.atlassian.net/browse/EMQX-12730
This commit is contained in:
parent
69f5b6fa6c
commit
d7112921a6
|
@ -3,9 +3,6 @@
|
||||||
## NOTE: This configuration is only applicable in EMQX Enterprise edition 5.1 or later.
|
## NOTE: This configuration is only applicable in EMQX Enterprise edition 5.1 or later.
|
||||||
|
|
||||||
file_transfer {
|
file_transfer {
|
||||||
## Enable the File Transfer feature
|
|
||||||
enable = true
|
|
||||||
|
|
||||||
## Storage backend settings
|
## Storage backend settings
|
||||||
storage {
|
storage {
|
||||||
## Local file system backend setting
|
## Local file system backend setting
|
||||||
|
|
|
@ -4,9 +4,6 @@
|
||||||
## Note: This configuration is only applicable for EMQX Enterprise edition 5.1 or later.
|
## Note: This configuration is only applicable for EMQX Enterprise edition 5.1 or later.
|
||||||
|
|
||||||
file_transfer {
|
file_transfer {
|
||||||
## Enable the File Transfer feature
|
|
||||||
enable = true
|
|
||||||
|
|
||||||
## Storage backend settings
|
## Storage backend settings
|
||||||
storage {
|
storage {
|
||||||
## Local file system backend setting
|
## Local file system backend setting
|
||||||
|
@ -51,8 +48,6 @@ file_transfer {
|
||||||
|
|
||||||
## Enable the HTTPS
|
## Enable the HTTPS
|
||||||
transport_options {
|
transport_options {
|
||||||
ssl.enable = true
|
|
||||||
|
|
||||||
## Timeout for connection attempts
|
## Timeout for connection attempts
|
||||||
connect_timeout = 15s
|
connect_timeout = 15s
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,8 +7,6 @@
|
||||||
## you should copy and paste the below data into the emqx.conf for working
|
## you should copy and paste the below data into the emqx.conf for working
|
||||||
|
|
||||||
delayed {
|
delayed {
|
||||||
enable = true ## false for disabled
|
|
||||||
|
|
||||||
## Maximum number of delayed messages
|
## Maximum number of delayed messages
|
||||||
## Default: 0 (0 is no limit)
|
## Default: 0 (0 is no limit)
|
||||||
max_delayed_messages = 0
|
max_delayed_messages = 0
|
||||||
|
|
|
@ -7,9 +7,6 @@ exhook.servers = [
|
||||||
## Name of the exhook server
|
## Name of the exhook server
|
||||||
name = "server_1"
|
name = "server_1"
|
||||||
|
|
||||||
## Feature switch
|
|
||||||
enable = false
|
|
||||||
|
|
||||||
## URL of gRPC server
|
## URL of gRPC server
|
||||||
url = "http://127.0.0.1:9090"
|
url = "http://127.0.0.1:9090"
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,6 @@
|
||||||
## Ban the client when the times of connections exceed the limit in the configured time window
|
## Ban the client when the times of connections exceed the limit in the configured time window
|
||||||
|
|
||||||
flapping_detect {
|
flapping_detect {
|
||||||
## use 'true' to enable this feature
|
|
||||||
enable = false
|
|
||||||
|
|
||||||
## Time window for flapping detection
|
## Time window for flapping detection
|
||||||
window_time = 1m
|
window_time = 1m
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
## Force Elrang VM garbage collection
|
## Force Elrang VM garbage collection
|
||||||
|
|
||||||
force_gc {
|
force_gc {
|
||||||
## set 'false' to disable this feature
|
|
||||||
enable = true
|
|
||||||
|
|
||||||
## GC the process after this many received messages
|
## GC the process after this many received messages
|
||||||
count = 16000
|
count = 16000
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,6 @@
|
||||||
## Forced shutdown MQTT clients for overload protection
|
## Forced shutdown MQTT clients for overload protection
|
||||||
|
|
||||||
force_shutdown {
|
force_shutdown {
|
||||||
## set 'false' to disable force shutdown feature
|
|
||||||
enable = true
|
|
||||||
|
|
||||||
## Maximum mailbox size for each Erlang process
|
## Maximum mailbox size for each Erlang process
|
||||||
## Note: Do not modify this unless you know what this is for
|
## Note: Do not modify this unless you know what this is for
|
||||||
max_mailbox_size = 1000
|
max_mailbox_size = 1000
|
||||||
|
|
|
@ -16,7 +16,6 @@ gateway.exproto {
|
||||||
## Configurations for request to ConnectionHandler service
|
## Configurations for request to ConnectionHandler service
|
||||||
handler {
|
handler {
|
||||||
address = "http://127.0.0.1:9001"
|
address = "http://127.0.0.1:9001"
|
||||||
ssl_options {enable = false}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
listeners.tcp.default {
|
listeners.tcp.default {
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
listeners.ssl.my_ssl_listener_name {
|
listeners.ssl.my_ssl_listener_name {
|
||||||
## Port or Address to listen on, 0 means disable
|
## Port or Address to listen on, 0 means disable
|
||||||
bind = 8883 ## or with an IP e.g. "127.0.0.1:8883"
|
bind = 8883 ## or with an IP e.g. "127.0.0.1:8883"
|
||||||
enabled = true
|
|
||||||
acceptors = 16
|
acceptors = 16
|
||||||
enable_authn = true
|
enable_authn = true
|
||||||
max_connections = infinity
|
max_connections = infinity
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
listeners.ws.my_ws_listener_name {
|
listeners.ws.my_ws_listener_name {
|
||||||
## Port or Address to listen on, 0 means disable
|
## Port or Address to listen on, 0 means disable
|
||||||
bind = "0.0.0.0:8083" # or just a port number, e.g. 8083
|
bind = "0.0.0.0:8083" # or just a port number, e.g. 8083
|
||||||
enabled = true
|
|
||||||
enable_authn = true
|
enable_authn = true
|
||||||
max_connections = infinity
|
max_connections = infinity
|
||||||
proxy_protocol = false
|
proxy_protocol = false
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
listeners.wss.my_wss_listener_name = {
|
listeners.wss.my_wss_listener_name = {
|
||||||
## Port or Address to listen on, 0 means disable
|
## Port or Address to listen on, 0 means disable
|
||||||
bind = 8084 ## or with an IP, e.g. "127.0.0.1:8084"
|
bind = 8084 ## or with an IP, e.g. "127.0.0.1:8084"
|
||||||
enabled = true
|
|
||||||
enable_authn = true
|
enable_authn = true
|
||||||
max_connections = infinity
|
max_connections = infinity
|
||||||
proxy_protocol = false
|
proxy_protocol = false
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
## Log to console
|
## Log to console
|
||||||
|
|
||||||
log.console {
|
log.console {
|
||||||
## set true to enable this
|
|
||||||
enable = false
|
|
||||||
|
|
||||||
## Log level
|
## Log level
|
||||||
## Type: debug | info | notice | warning | error | critical | alert | emergency
|
## Type: debug | info | notice | warning | error | critical | alert | emergency
|
||||||
level = warning
|
level = warning
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
## Log to file
|
## Log to file
|
||||||
|
|
||||||
log.file {
|
log.file {
|
||||||
## Enable file log handler
|
|
||||||
enable = true
|
|
||||||
|
|
||||||
## Log level
|
## Log level
|
||||||
## Type: debug | info | notice | warning | error | critical | alert | emergency
|
## Type: debug | info | notice | warning | error | critical | alert | emergency
|
||||||
level = warning
|
level = warning
|
||||||
|
|
|
@ -9,10 +9,8 @@ plugins {
|
||||||
## Format: {name}-{version}
|
## Format: {name}-{version}
|
||||||
## Note: name and version should be what it is in the plugin application
|
## Note: name and version should be what it is in the plugin application
|
||||||
name_vsn = "my_acl-0.1.0",
|
name_vsn = "my_acl-0.1.0",
|
||||||
|
|
||||||
enable = true ## enable this plugin
|
|
||||||
},
|
},
|
||||||
{name_vsn = "my_rule-0.1.1", enable = false}
|
{name_vsn = "my_rule-0.1.1"}
|
||||||
]
|
]
|
||||||
|
|
||||||
## The installation directory for the external plugins
|
## The installation directory for the external plugins
|
||||||
|
|
|
@ -5,9 +5,6 @@
|
||||||
## If you want to use push-gateway
|
## If you want to use push-gateway
|
||||||
|
|
||||||
prometheus {
|
prometheus {
|
||||||
## Set to true to make EMQX send metrics to push-gateway
|
|
||||||
enable = false
|
|
||||||
|
|
||||||
## URL of push-gateway server
|
## URL of push-gateway server
|
||||||
push_gateway_server = "http://127.0.0.1:9091"
|
push_gateway_server = "http://127.0.0.1:9091"
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
prometheus {
|
prometheus {
|
||||||
enable_basic_auth = false
|
enable_basic_auth = false
|
||||||
push_gateway {
|
push_gateway {
|
||||||
enable = false
|
|
||||||
url = "http://127.0.0.1:9091"
|
url = "http://127.0.0.1:9091"
|
||||||
headers {Authorization = "Basic YWRtaW46Y2JraG55eWd5QDE="}
|
headers {Authorization = "Basic YWRtaW46Y2JraG55eWd5QDE="}
|
||||||
interval = 15s
|
interval = 15s
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
## Pre-Shared Keys authentication
|
## Pre-Shared Keys authentication
|
||||||
|
|
||||||
psk_authentication {
|
psk_authentication {
|
||||||
## Set to false to disable
|
|
||||||
enable = true
|
|
||||||
|
|
||||||
## If init_file is specified, EMQX will import PSKs from the file into the built-in database at startup for use by the runtime
|
## If init_file is specified, EMQX will import PSKs from the file into the built-in database at startup for use by the runtime
|
||||||
init_file = "psk"
|
init_file = "psk"
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,6 @@
|
||||||
##--------------------------------------------------------------------
|
##--------------------------------------------------------------------
|
||||||
|
|
||||||
retainer {
|
retainer {
|
||||||
## set to false to disable retainer
|
|
||||||
enable = true
|
|
||||||
|
|
||||||
## Message retention time, default is 0 means the message will never expire
|
## Message retention time, default is 0 means the message will never expire
|
||||||
msg_expiry_interval = 5s
|
msg_expiry_interval = 5s
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue