@evershop/azure_file_storage
v2.1.1
Published
An extension for EverShop to use Azure File Storage
Downloads
113
Maintainers
Keywords
Readme
Azure storage extension for EverShop
This extension allows you to store your EverShop files including product images, banners on Azure Blob Storage.
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/azure_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": "azure_file_storage",
"resolve": "node_modules/@evershop/azure_file_storage",
"enabled": true,
"priority": 10
}
]
}
}Step 3: Add the Azure storage connection string to the environment variables
Edit the .env file:
AZURE_STORAGE_CONNECTION_STRING="<Your connection string>"
AZURE_STORAGE_CONTAINER_NAME="<Your container name>"Example:
AZURE_STORAGE_CONNECTION_STRING="DefaultEndpointsProtocol=https;AccountName=myevershop;AccountKey=+b1/nrwkpOF5DZCybDqSDFDdfGCQSbx8eua3y7sadgfdgdfAdNNbns6xMNh+EeE0b10uc0ZJ+AStvBx8pg==;EndpointSuffix=core.windows.net"
AZURE_STORAGE_CONTAINER_NAME="images"Step 4: Activate the Azure file 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": "azure"
}
}Step 4: Run the build command
npm run buildNote: You can get the connection string from the Azure portal.
