ghost-storage-adapter-s3-everwrite

0.0.3 • Public • Published

Ghost storage adapter S3

This is a fork of ghost-storage-adapter-s3 with an ability to import images through Ghost import. Requires a slightly modified Ghost version.

An AWS S3 storage adapter for Ghost 1.x

For Ghost 0.10.x and 0.11.x support check out Ghost storage adapter s3 v1.3.0.

Installation

npm install ghost-storage-adapter-s3
mkdir -p ./content/adapters/storage
cp -r ./node_modules/ghost-storage-adapter-s3 ./content/adapters/storage/s3

Configuration

"storage"{
  "active": "s3",
  "s3": {
    "accessKeyId": "YOUR_ACCESS_KEY_ID",
    "assetHost": "YOUR_OPTIONAL_CDN_URL (See note below)",
    "bucket": "YOUR_BUCKET_NAME",
    "pathPrefix": "YOUR_OPTIONAL_BUCKET_SUBDIRECTORY",
    "region": "YOUR_REGION_SLUG",
    "secretAccessKey": "YOUR_SECRET_ACCESS_KEY",
    "endpoint": "YOUR_OPTIONAL_ENDPOINT_URL (only needed for 3rd party S3 providers)"
  }
}

Note: Be sure to include "//" or the appropriate protocol within your assetHost string/variable to ensure that your site's domain is not prepended to the CDN URL.

Via environment variables

AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION
GHOST_STORAGE_ADAPTER_S3_PATH_BUCKET
GHOST_STORAGE_ADAPTER_S3_ASSET_HOST  // optional
GHOST_STORAGE_ADAPTER_S3_PATH_PREFIX // optional
GHOST_STORAGE_ADAPTER_S3_ENDPOINT // optional

License

ISC.

Package Sidebar

Install

npm i ghost-storage-adapter-s3-everwrite

Weekly Downloads

0

Version

0.0.3

License

ISC

Unpacked Size

151 kB

Total Files

9

Last publish

Collaborators

  • iamakulov