file_transfer-with-local-exporter.conf.example 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ## File Transfer over MQTT exporting files to local file system
  2. ##
  3. ## NOTE: This configuration is only applicable in EMQX Enterprise edition 5.1 or later.
  4. file_transfer {
  5. ## Enable the File Transfer feature
  6. enable = true
  7. ## Storage backend settings
  8. storage {
  9. ## Local file system backend setting
  10. ## Currently, it's the only available storage backend.
  11. local {
  12. ## Segments and temporary files storage settings
  13. segments {
  14. ## Directory where these files are stored
  15. root = "/var/lib/emqx/transfers/segments"
  16. ## Garbage collection settings
  17. gc {
  18. ## How often to run GC
  19. interval = 1h
  20. ## Maximum time to keep parts of incomplete transfers for
  21. maximum_segments_ttl = 24h
  22. }
  23. }
  24. ## Local filesystem exporter
  25. ## Enable the backend
  26. ## Note: Can only configure one backend at a time
  27. ## One can set 'exporter.local.enable=false' to disable it
  28. ## while keeping the configuration context
  29. exporter.local {
  30. ## Directory in the local file system where to store transferred files
  31. root = "/var/lib/emqx/transfers/exports"
  32. }
  33. }
  34. }
  35. }