瀏覽代碼

chore: fix errors in the example for the file transfer configuration

firest 2 年之前
父節點
當前提交
528f49aa2e
共有 2 個文件被更改,包括 11 次插入10 次删除
  1. 9 8
      examples/file_transfer-with-s3-exporter.conf.example
  2. 2 2
      examples/flapping_detect.conf.example

+ 9 - 8
examples/file_transfer-with-s3-exporter.conf.example

@@ -48,7 +48,7 @@ file_transfer {
 
 
                 ## Credentials to use to authorize with the S3 API
                 ## Credentials to use to authorize with the S3 API
                 access_key_id = "AKIA27EZDDM9XLINWXFE"
                 access_key_id = "AKIA27EZDDM9XLINWXFE"
-                secret_access_key = "..."
+                secret_access_key = "******"
 
 
                 ## Which bucket to store transferred files in?
                 ## Which bucket to store transferred files in?
                 bucket = "my-bucket"
                 bucket = "my-bucket"
@@ -57,15 +57,16 @@ file_transfer {
                 url_expire_time = 1h
                 url_expire_time = 1h
 
 
                 ## Enable the HTTPS
                 ## Enable the HTTPS
-                transport_options.ssl.enable = true
+                transport_options {
+                    ssl.enable = true
 
 
-                ## Timeout for connection attempts
-                connect_timeout = 15s
+                    ## Timeout for connection attempts
+                    connect_timeout = 15s
 
 
-                ## Attempt to talk through IPv6 first
-                ipv6_probe = true
-            }
+                    ## Attempt to talk through IPv6 first
+                    ipv6_probe = true
+               }
+           }
         }
         }
-
     }
     }
 }
 }

+ 2 - 2
examples/flapping_detect.conf.example

@@ -7,8 +7,8 @@
 ##       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
 
 
 flapping_detect {
 flapping_detect {
-    ## Feature switch
-    enable = false
+    ## use false to disabled
+    enable = true
 
 
     ## Time window for flapping detection
     ## Time window for flapping detection
     window_time = 1m
     window_time = 1m