Merge pull request #13155 from zmstone/0529-hide-enable-flag-which-has-default-value-true

refactor: hide 'enable' config from example when it's 'true' by default
This commit is contained in:
zmstone 2024-05-31 21:52:40 +02:00 committed by GitHub
commit ec7ec7261e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 13 deletions

View File

@ -11,8 +11,6 @@ file_transfer {
## Local file system backend setting
## Currently, it's the only available storage backend.
local {
## Enable the backend
enable = true
## Segments and temporary files storage settings
segments {
@ -30,12 +28,11 @@ file_transfer {
}
## Local filesystem exporter
## Enable the backend
## Note: Can only configure one backend at a time
## One can set 'exporter.local.enable=false' to disable it
## while keeping the configuration context
exporter.local {
## Enable the backend
## Note: Only one backend may be enabled at a time
enable = true
## Directory in the local file system where to store transferred files
root = "/var/lib/emqx/transfers/exports"
}

View File

@ -12,8 +12,6 @@ file_transfer {
## Local file system backend setting
## Currently, it's the only available storage backend.
local {
## Enable the backend
enable = true
## Segments and temporary files storage settings
segments {
@ -31,12 +29,12 @@ file_transfer {
}
## S3-compatible object storage exporter
## Enable the backend
## Note: Can only configure one backend at a time
## One can set 'exporter.s3.enable=false' to disable it
## while keeping the configuration context
exporter.s3 {
## Disable the backend
## Note: Only one backend may be enabled at a time.
enable = true
## Endpoint of S3 API of the object storage service of your choice
host = "s3.us-east-1.amazonaws.com"
port = 443