| 1234567891011121314151617181920212223242526272829303132333435363738 |
- ## 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 {
- ## 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"
- }
- }
- }
- }
|