
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
@mojotech/mojo-ghost-s3-adapter
Advanced tools
Ghost storage adapter to store and serve images from AWS S3
A Ghost blog storage adapter to store and serve images from AWS S3.
After installing, new images uploaded will use an absolute URL to your
S3 storage bucket. Any old, existing requests to /content/images
will be
proxied to your S3 bucket as well, so that previous images will not be affected.
This requires you to have uploaded your previous /content/images
assets to
your S3 bucket.
This adapter has been tested with Ghost 1.8.x and higher.
Ghost storage adapters need to be installed directly in your ghost installation content directory:
$ npm install @mojotech/mojo-ghost-s3-adapter
$ mkdir -p content/adapters/storage
$ cp -r node_modules/@mojotech/mojo-ghost-s3-compat content/adapters/storage
An AWS IAM user with GetObject
bucket permissions is required. You will need
the IAM users access and secret key information to configure the storage adapter.
In your Ghost configuration file, add a storage
block for your environment:
'storage': {
'active': 'mojo-ghost-s3-adapter',
'mojo-ghost-s3-adapter': {
'accessKeyId': '<ACCESS_KEY_ID>',
'secretAccessKey': '<SECRET_ACCESS_KEY>',
'bucket': '<S3_BUCKET_NAME>',
'region': '<S3_REGION_NAME>'
}
}
If you use a CDN such as CloudFront or CloudFlare you can add an optional
assetHost
key to your storage
configuration with the virtual host url
of your CDN.
assetHost: 'https://cdn.yourdomain.com'
Bug reports and Pull Requests are welcome at https://github.com/mojotech/mojo-ghost-s3-adapter. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant Code of Conduct.
Copyright (c) 2017 MojoTech, LLC.
Released under the MIT license.
FAQs
Ghost storage adapter to store and serve images from AWS S3
We found that @mojotech/mojo-ghost-s3-adapter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.