This module allows you to store media file at Azure instead of storing at local machine. Supports ghost versions 0.10.+
-
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)
-
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)
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.
}
},
You can set your connection string as the Environment Variable AZURE_STORAGE_CONNECTION_STRING
Released under the MIT license.