@evershop/s3_file_storage
v2.1.1
Published
An extension for EverShop to use AWS S3 File Storage
Downloads
121
Maintainers
Keywords
Readme
AWS S3 storage extension for EverShop
This extension allows you to store your EverShop files including product images, banners on AWS S3.
Core Compatibility
Note: This version 2.1.0 requires EverShop version 2.1.0 or higher.
Installation guide
Step 1: Install the extension using npm:
npm install @evershop/s3_file_storageStep 2: Enable the extension
Edit the config/default.json file in the root directory of your EverShop installation and add the following line to the extensions section:
{
...,
"system": {
...,
"extensions": [
...,
{
"name": "s3_file_storage",
"resolve": "node_modules/@evershop/s3_file_storage",
"enabled": true,
"priority": 10
}
]
}
}Step 3: Add the S3 storage connection information to the environment variables
Edit the .env file:
AWS_ACCESS_KEY_ID="<Your access key>"
AWS_SECRET_ACCESS_KEY="<Your secret access key>"
AWS_REGION="<Your region>"
AWS_BUCKET_NAME="<Your bucket name>"Step 4: Active the AWS S3 storage
Edit the config/default.json file in the root directory of your EverShop installation and add the following line to the file_storage section:
{
...,
"system": {
...,
"file_storage": "s3"
}
}Step 5: Run the build command
npm run build