An extension for EverShop to use Azure File Storage
npm install @evershop/azure_file_storageThis extension allows you to store your EverShop files including product images, banners on Azure Blob Storage.
> Note: This version 2.1.0 requires EverShop version 2.1.0 or higher.
``bash`
npm install @evershop/azure_file_storage
Edit the config/default.json file in the root directory of your EverShop installation and add the following line to the extensions section:
`json`
{
...,
"system": {
...,
"extensions": [
...,
{
"name": "azure_file_storage",
"resolve": "node_modules/@evershop/azure_file_storage",
"enabled": true,
"priority": 10
}
]
}
}
Edit the .env file:
`bash`
AZURE_STORAGE_CONNECTION_STRING="
AZURE_STORAGE_CONTAINER_NAME="
Example:
`bash`
AZURE_STORAGE_CONNECTION_STRING="DefaultEndpointsProtocol=https;AccountName=myevershop;AccountKey=+b1/nrwkpOF5DZCybDqSDFDdfGCQSbx8eua3y7sadgfdgdfAdNNbns6xMNh+EeE0b10uc0ZJ+AStvBx8pg==;EndpointSuffix=core.windows.net"
AZURE_STORAGE_CONTAINER_NAME="images"
Edit the config/default.json file in the root directory of your EverShop installation and add the following line to the file_storage section:
`json`
{
...,
"system": {
...,
"file_storage": "azure"
}
}
`bash``
npm run build
> Note: You can get the connection string from the Azure portal.