-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
3,273 additions
and
129 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Azure storage extension for EverShop | ||
|
||
This extension allows you to store your EverShop files on Azure Blob Storage. | ||
|
||
> **Note**: This extension requires EverShop version 1.0.0-rc.9 or higher. | ||
## Installation guide | ||
|
||
### Step 1: Install the extension using npm: | ||
|
||
```bash | ||
npm install @evershop/azure_file_storage | ||
``` | ||
|
||
### Step 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: | ||
|
||
```json | ||
{ | ||
..., | ||
"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: | ||
|
||
```bash | ||
AZURE_STORAGE_CONNECTION_STRING="DefaultEndpointsProtocol=https;AccountName=myevershop;AccountKey=+b1/nrwkpOF5DZCybDqSDFDdfGCQSbx8eua3y7sadgfdgdfAdNNbns6xMNh+EeE0b10uc0ZJ+AStvBx8pg==;EndpointSuffix=core.windows.net" | ||
AZURE_STORAGE_CONTAINER_NAME="images" | ||
``` | ||
|
||
### 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: | ||
|
||
```json | ||
{ | ||
..., | ||
"file_storage": "azure" | ||
} | ||
``` | ||
|
||
### Step 4: Run the build command | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
> **Note**: You can get the connection string from the Azure portal. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.