.env
file. Below are the required variables and their functions:
S3_ENABLED
: Enables (true
) or disables (false
) the use of S3 or Minio for file storage.S3_ACCESS_KEY
: Access key provided by the service provider (AWS or Minio).S3_SECRET_KEY
: Secret key corresponding to the access key, used for authentication.S3_BUCKET
: Name of the bucket where files will be stored.S3_PORT
: Port used for the connection, usually 443
for SSL connections.S3_ENDPOINT
: Endpoint of the S3 or Minio service. For Amazon S3, it’s necessary to include the region in the format region: s3.[region].amazonaws.com
, e.g., s3.eu-west-3.amazonaws.com
.S3_USE_SSL
: Defines whether the connection should use SSL (true
or false
).S3_REGION
: The region of the S3 bucket (default is us-east-1
).mediaUrl
mediaUrl
in the message body. This allows your application to directly access the file stored in S3 or Minio.
mediaUrl
might appear: