By default application data is stored locally in the storage/app/ directory within your installation directory. In high availability deployments, it's necessary for some of these files such as ticket attachments to be available to all application servers and this can be achieved using cloud storage.
For details on how to set the below configuration items, please read Environment Variables.
We currently support cloud storage on any S3 compatible file storage service such as Amazon S3, MinIO or DigitalOcean Spaces. To configure cloud storage, specify the following environment variables:
AWS_ACCESS_KEY_ID - Specifies an AWS access key associated with an IAM account.AWS_SECRET_ACCESS_KEY - Specifies the secret key associated with the access key. This is essentially the "password" for the access key.AWS_DEFAULT_REGION - The AWS Region whose servers you want to send your requests to by default.AWS_BUCKET - The name of the bucket.Once the authentication environment variables have been configured, change the driver:
FILESYSTEM_DISK=s3
In order to use non Amazon S3 services you may need to specify additional environment variables:
AWS_ENDPOINT=https://minio:9000
AWS_USE_PATH_STYLE_ENDPOINT=true
Article Number: 257
Author: Jul 22, 2024
Last Updated: Jul 22, 2024
Online URL: https://docs.supportpro.vn/article/cloud-storage-257.html