ghostazureimages
v1.1.2
Published
Store content from ghost in azure file storage
Downloads
4
Maintainers
Readme
Ghost Azure
This module allows you to store media file at Azure instead of storing at local machine. Supports ghost versions 0.10.+
Installation
*nix
npm install ghostazureimages
(note the absence of--save
)mkdir content/storage
(make the storage folder if it doesn't exist yet)cp -vR node_modules/ghostazureimages content/storage/ghostazureimages
(copy the module into the right location)
powershell
npm install ghostazureimages
(note the absence of--save
)mkdir content/storage
(make the storage folder if it doesn't exist yet)cp -Recurse node_modules/ghostazureimages content/storage/ghostazureimages
(copy the module into the right location)
Configuration
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: 'ghostazureimages',
'ghostazureimages': {
connectionString: 'YourConnectionStringHere',
container: 'YourOptionalContainerName',
cdnUrl: "YourCDNEndpointDomain",
useHttps : "UseHttpsInEndpoint" //Optional: CDN protocol. Defaults to http if omitted. Set to "true", to enable.
}
},
Environment Variables
You can set your connection string as the Environment Variable AZURE_STORAGE_CONNECTION_STRING
Released under the MIT license.