Преглед на файлове

docs: remove `enable` from config examples

Fixes https://emqx.atlassian.net/browse/EMQX-12730
Thales Macedo Garitezi преди 1 година
родител
ревизия
d7112921a6

+ 0 - 3
rel/config/ee-examples/file_transfer-with-local-exporter.conf.example

@@ -3,9 +3,6 @@
 ## NOTE: This configuration is only applicable in EMQX Enterprise edition 5.1 or later.
 
 file_transfer {
-    ## Enable the File Transfer feature
-    enable = true
-
     ## Storage backend settings
     storage {
         ## Local file system backend setting

+ 0 - 5
rel/config/ee-examples/file_transfer-with-s3-exporter.conf.example

@@ -4,9 +4,6 @@
 ## Note: This configuration is only applicable for EMQX Enterprise edition 5.1 or later.
 
 file_transfer {
-    ## Enable the File Transfer feature
-    enable = true
-
     ## Storage backend settings
     storage {
         ## Local file system backend setting
@@ -51,8 +48,6 @@ file_transfer {
 
                 ## Enable the HTTPS
                 transport_options {
-                    ssl.enable = true
-
                     ## Timeout for connection attempts
                     connect_timeout = 15s
                }

+ 0 - 2
rel/config/examples/delayed.conf.example

@@ -7,8 +7,6 @@
 ##       you should copy and paste the below data into the emqx.conf for working
 
 delayed {
-    enable = true ## false for disabled
-
     ## Maximum number of delayed messages
     ## Default: 0 (0 is no limit)
     max_delayed_messages = 0

+ 0 - 3
rel/config/examples/exhook.conf.example

@@ -7,9 +7,6 @@ exhook.servers = [
         ## Name of the exhook server
         name = "server_1"
 
-        ## Feature switch
-        enable = false
-
         ## URL of gRPC server
         url = "http://127.0.0.1:9090"
 

+ 0 - 3
rel/config/examples/flapping_detect.conf.example

@@ -3,9 +3,6 @@
 ## Ban the client when the times of connections exceed the limit in the configured time window
 
 flapping_detect {
-    ## use 'true' to enable this feature
-    enable = false
-
     ## Time window for flapping detection
     window_time = 1m
 

+ 0 - 3
rel/config/examples/force_gc.conf.example

@@ -1,9 +1,6 @@
 ## Force Elrang VM garbage collection
 
 force_gc {
-    ## set 'false' to disable this feature
-    enable = true
-
     ## GC the process after this many received messages
     count = 16000
 

+ 0 - 3
rel/config/examples/force_shutdown.conf.example

@@ -3,9 +3,6 @@
 ## Forced shutdown MQTT clients for overload protection
 
 force_shutdown {
-    ## set 'false' to disable force shutdown feature
-    enable = true
-
     ## Maximum mailbox size for each Erlang process
     ## Note: Do not modify this unless you know what this is for
     max_mailbox_size = 1000

+ 0 - 1
rel/config/examples/gateway.exproto.conf.example

@@ -16,7 +16,6 @@ gateway.exproto {
     ## Configurations for request to ConnectionHandler service
     handler {
         address = "http://127.0.0.1:9001"
-        ssl_options {enable = false}
     }
 
     listeners.tcp.default {

+ 0 - 1
rel/config/examples/listeners.ssl.conf.example

@@ -3,7 +3,6 @@
 listeners.ssl.my_ssl_listener_name {
     ## Port or Address to listen on, 0 means disable
     bind = 8883 ## or with an IP e.g. "127.0.0.1:8883"
-    enabled = true
     acceptors = 16
     enable_authn = true
     max_connections = infinity

+ 0 - 1
rel/config/examples/listeners.ws.conf.example

@@ -3,7 +3,6 @@
 listeners.ws.my_ws_listener_name {
     ## Port or Address to listen on, 0 means disable
     bind = "0.0.0.0:8083" # or just a port number, e.g. 8083
-    enabled = true
     enable_authn = true
     max_connections = infinity
     proxy_protocol = false

+ 0 - 1
rel/config/examples/listeners.wss.conf.example

@@ -3,7 +3,6 @@
 listeners.wss.my_wss_listener_name = {
     ## Port or Address to listen on, 0 means disable
     bind = 8084 ## or with an IP, e.g. "127.0.0.1:8084"
-    enabled = true
     enable_authn = true
     max_connections = infinity
     proxy_protocol = false

+ 0 - 3
rel/config/examples/log.console.conf.example

@@ -1,9 +1,6 @@
 ## Log to console
 
 log.console {
-    ## set true to enable this
-    enable = false
-
     ## Log level
     ## Type: debug | info | notice | warning | error | critical | alert | emergency
     level = warning

+ 0 - 3
rel/config/examples/log.file.conf.example

@@ -1,9 +1,6 @@
 ## Log to file
 
 log.file {
-    ## Enable file log handler
-    enable = true
-
     ## Log level
     ## Type: debug | info | notice | warning | error | critical | alert | emergency
     level = warning

+ 1 - 3
rel/config/examples/plugins.conf.example

@@ -9,10 +9,8 @@ plugins {
             ##     Format: {name}-{version}
             ##     Note: name and version should be what it is in the plugin application
             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

+ 0 - 3
rel/config/examples/prometheus-pushgateway.conf.example

@@ -5,9 +5,6 @@
 ## If you want to use push-gateway
 
 prometheus {
-    ## Set to true to make EMQX send metrics to push-gateway
-    enable = false
-
     ## URL of push-gateway server
     push_gateway_server = "http://127.0.0.1:9091"
 

+ 0 - 1
rel/config/examples/prometheus.conf.example

@@ -7,7 +7,6 @@
 prometheus {
   enable_basic_auth = false
   push_gateway {
-    enable = false
     url = "http://127.0.0.1:9091"
     headers {Authorization = "Basic YWRtaW46Y2JraG55eWd5QDE="}
     interval = 15s

+ 0 - 3
rel/config/examples/psk_authentication.conf.example

@@ -1,9 +1,6 @@
 ## Pre-Shared Keys 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
     init_file = "psk"
 

+ 0 - 3
rel/config/examples/retainer.conf.example

@@ -5,9 +5,6 @@
 ##--------------------------------------------------------------------
 
 retainer {
-    ## set to false to disable retainer
-    enable = true
-
     ## Message retention time, default is 0 means the message will never expire
     msg_expiry_interval = 5s