Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ghost-v3-google-cloud-storage

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ghost-v3-google-cloud-storage

A Google Cloud Storage adapter for Ghost v3 (www.ghost.org).

  • 1.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Ghost v3 Google Cloud Storage Adapter

This custom storage adapter for Ghost v3 allows you to send your publication's images to Google Cloud Storage (in short, GCS).

Read more about Ghost's storage adapters in the official documentation.

Installation

cd [your/ghost/root/directory]

# Create the GCS storage adapter directory
mkdir -p content/adapters/storage/gcs

# No need for --save as we will move the content to a different folder
npm install ghost-v3-google-cloud-storage

# Move the GCS storage adapter to the correct location so Ghost can find it
mv node_modules/ghost-v3-google-cloud-storage/* content/adapters/storage/gcs/

Note: We named the storage adapter gcs; it's simpler to work with.

Configuration

Create a Google Cloud Storage bucket

Please refer to the official documentation.

Ghost config file

Open your config.[env].json in the Ghost root directory and add a storage section.

"storage": {
  "active": "gcs",
  "gcs": {
    "bucket": "your-gcs-bucket-name",
    "keyFilename": "path-to-your-service-account.json",
    "cdn": "optional-cdn-domain"
  }
}

bucket: Required.

keyFilename: Optional if Ghost is hosted on GCP.

cdn: Optional. If you use a CDN, this is the CDN base URL.

Keywords

FAQs

Package last updated on 07 Jun 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc