1.0.0 • Published 7 years ago

ghostblobstorage v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Ghost image storage adapter for Azure Blob Storage

Azure Blob Storage adapter for Ghost 0.10+

Installation

Windows

npm install ghostblobstorage --production
mkdir .\content\storage\azure-blob-storage
xcopy .\node_modules\ghostblobstorage .\content\storage\ghostblobstorage /E /Y

Configuration

In your config.js file, you'll need to add a new storage block to whichever environment you want to change:

storage: {
  active: 'ghostblobstorage',
  'ghostblobstorage': {
    connectionString: 'your storage account connection string',
    container: 'your container name', // lowercase, 3-63 characters, only letters, numbers or dashes (-), default is 'ghost'
    cdnUrl: 'your CDN endpoint', // optional, e.g. https://az******.vo.msecnd.net
  }
}

The following environment variables can be used to provide values for the above settings:

  • storage_connectionString or AZURE_STORAGE_CONNECTION_STRING
  • storage_container
  • storage_cdnUrl

Environment variables take precedence over config.js values and defaults.

License

MIT