ghostazureimages

1.1.2 • Public • Published

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.

Package Sidebar

Install

npm i ghostazureimages

Homepage

elyisus.info

Weekly Downloads

1

Version

1.1.2

License

MIT

Last publish

Collaborators

  • jeverduzco