Google Cloud Storage source for the Mead image transformer service - loads images from a GCS bucket.
npm install --save mead-plugin-source-gcs
Your mead configuration file (mead --config <path-to-config.js>
):
module.exports = {
// Load the plugin
plugins: [
require('mead-plugin-source-gcs')
],
// Define a source using GCS
sources: [{
name: 'my-gcs-source',
adapter: {
type: 'gcs',
config: {
projectId: 'some-project-123',
pathPrefix: 'photos', // Optional
bucket: 'my-bucket-name',
// Either provide `keyFilename` or `credentials`
// (`credentials` being the contents of a key file)
keyFilename: '/path/to/gcs-key.json'
}
}
}]
}
MIT-licensed. See LICENSE.