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

1234567891011121314151617181920212223242526272829303132333435363738
  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. ## Storage backend settings
  6. storage {
  7. ## Local file system backend setting
  8. ## Currently, it's the only available storage backend.
  9. local {
  10. ## Segments and temporary files storage settings
  11. segments {
  12. ## Directory where these files are stored
  13. root = "/var/lib/emqx/transfers/segments"
  14. ## Garbage collection settings
  15. gc {
  16. ## How often to run GC
  17. interval = 1h
  18. ## Maximum time to keep parts of incomplete transfers for
  19. maximum_segments_ttl = 24h
  20. }
  21. }
  22. ## Local filesystem exporter
  23. ## Enable the backend
  24. ## Note: Can only configure one backend at a time
  25. ## One can set 'exporter.local.enable=false' to disable it
  26. ## while keeping the configuration context
  27. exporter.local {
  28. ## Directory in the local file system where to store transferred files
  29. root = "/var/lib/emqx/transfers/exports"
  30. }
  31. }
  32. }
  33. }