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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ##--------------------------------------------------------------------
  2. ## File Transfer
  3. ##
  4. ## Enables the File Transfer over MQTT feature
  5. ##--------------------------------------------------------------------
  6. ## Note: This is an example of how to configure this feature
  7. ## you should copy and paste the below data into the emqx.conf for working
  8. ## Note: This configuration only works for the EMQX Enterprise version
  9. file_transfer {
  10. ## Enable the File Transfer feature
  11. enable = true
  12. ## Storage backend settings
  13. storage {
  14. ## Local file system backend setting
  15. ## Currently, it's the only available storage backend.
  16. local {
  17. ## Enable the backend
  18. enable = true
  19. ## Segments and temporary files storage settings
  20. segments {
  21. ## Directory where these files are stored
  22. root = "/var/lib/emqx/transfers/segments"
  23. ## Garbage collection settings
  24. gc {
  25. ## How often to run GC
  26. interval = 1h
  27. ## Maximum time to keep parts of incomplete transfers for
  28. maximum_segments_ttl = 24h
  29. }
  30. }
  31. ## Local filesystem exporter
  32. exporter.local {
  33. ## Enable the backend
  34. ## Note: Only one backend may be enabled at a time
  35. enable = true
  36. ## Directory in the local file system where to store transferred files
  37. root = "/var/lib/emqx/transfers/exports"
  38. }
  39. }
  40. }
  41. }