| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- ##--------------------------------------------------------------------
- ## File Transfer
- ##
- ## Enables the File Transfer over MQTT feature
- ##--------------------------------------------------------------------
- ## Note: This is an example of how to configure this feature
- ## you should copy and paste the below data into the emqx.conf for working
- ## Note: This configuration only works for the EMQX Enterprise version
- 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 {
- ## Enable the backend
- enable = true
- ## 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
- }
- }
- ## S3-compatible object storage exporter
- exporter.s3 {
- ## Disable the backend
- ## Note: Only one backend may be enabled at a time.
- enable = true
- ## Endpoint of S3 API of the object storage service of your choice
- host = "s3.us-east-1.amazonaws.com"
- port = 443
- ## Credentials to use to authorize with the S3 API
- access_key_id = "AKIA27EZDDM9XLINWXFE"
- secret_access_key = "******"
- ## Which bucket to store transferred files in?
- bucket = "my-bucket"
- ## TTL of file download URLs exposed through File Transfer API
- url_expire_time = 1h
- ## Enable the HTTPS
- transport_options {
- ssl.enable = true
- ## Timeout for connection attempts
- connect_timeout = 15s
- ## Attempt to talk through IPv6 first
- ipv6_probe = true
- }
- }
- }
- }
- }
|