emqx/rel/config/ee-examples/file_transfer-with-local-ex...

42 lines
1.3 KiB
Plaintext

## File Transfer over MQTT exporting files to local file system
##
## 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
## Currently, it's the only available storage backend.
local {
## Segments and temporary files storage settings
segments {
## Directory where these files are stored
root = "/var/lib/emqx/transfers/segments"
## Garbage collection settings
gc {
## How often to run GC
interval = 1h
## Maximum time to keep parts of incomplete transfers for
maximum_segments_ttl = 24h
}
}
## 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 {
## Directory in the local file system where to store transferred files
root = "/var/lib/emqx/transfers/exports"
}
}
}
}