s3-ghost
TypeScript icon, indicating that this package has built-in type declarations

1.4.10 • Public • Published

S3 Ghost

Ghost AWS S3 Storage Adapter

  • Use AWS Javascript SDK v3.
  • Default cache control: cache in 3 weeks.

How to

From your parent directory of the content directory (ghost root by default). Run following script

rm -rf content/adapters/storage/s3-ghost
mkdir content/adapters/storage/s3-ghost
cd content/adapters/storage/s3-ghost
yarn init -y
yarn add s3-ghost
cp node_modules/s3-ghost/index.js .
rm -rf node_modules/s3-ghost package.json yarn.lock
  • In config.production.json add configuration as follows. All keys are required
    "storage": {
        "active": "s3-ghost",
        "s3-ghost": {
            "accessKeyId": "<AWS key>",
            "secretAccessKey": "<AWS Secret key>",
            "bucketName": "<bucket name>",
            "region": "<region>",
            "assetsBaseUrl": "<CDN url or s3 url>",
            "ghostDirectory": "../../../.."
        }

Note: ghostDirectory is the directory where ghost is installed. It must be an absolute path or relative path to the location where this plugin is installed

Readme

Keywords

none

Package Sidebar

Install

npm i s3-ghost

Weekly Downloads

0

Version

1.4.10

License

MIT

Unpacked Size

12.1 kB

Total Files

6

Last publish

Collaborators

  • tranvansang