1.3.1 • Published 8 years ago

fma16-ghost-azure-storage v1.3.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Ghost Azure

This module is only used for testing purposes. If you're looking for the original implementation, go check https://github.com/tparnell8/ghost-azurestorage. Thanks a lot!


Installation

npm install --save ghost-azure-storage

Create storage module

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');

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: 'ghost-azurestorage',
			'ghost-azurestorage': {
				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.