This module allows you to store media file at Azure instead of storing at local machine.
npm install --save ghost-azure-storage
Create index.js file with folder path 'content/storage/ghost-azurestorage/index.js' (manually create folder if not exist)
'use strict';
module.exports = require('ghost-azure-storage');
Create new azure storage account, and get the connection string (can be found in the preview portal)
Add storage
block to file config.js
in each environment as below:
storage: {
active: 'ghost-azurestorage',
'ghost-azurestorage': {
connectionString: 'YourConnectionStringHere',
container: 'YourOptionalContainerName'
}
},
You can set your connection string as the Environment Variable AZURE_STORAGE_CONNECTION_STRING
Released under the MIT license.