# ghost-storage-google-cloud

> Google Cloud storage adapter for Ghost

Latest version **1.0.1** (published 2020-04-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install ghost-storage-google-cloud
pnpm add ghost-storage-google-cloud
yarn add ghost-storage-google-cloud
bun add ghost-storage-google-cloud
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-04-03 |
| First published | 2020-03-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=7.0.0 |
| Dependencies | 4 |
| Unpacked size | 7.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Victor Truong |
| Maintainers | ifvictr |

## Links

- npm: https://www.npmjs.com/package/ghost-storage-google-cloud
- Repository: https://github.com/ifvictr/ghost-storage-google-cloud
- Homepage: https://github.com/ifvictr/ghost-storage-google-cloud#readme
- Issues: https://github.com/ifvictr/ghost-storage-google-cloud/issues
- npm.io page: https://npm.io/package/ghost-storage-google-cloud

## Dependencies (4)

- [is-url](https://npm.io/package/is-url.md) ^1.2.4
- [bluebird](https://npm.io/package/bluebird.md) ^3.7.2
- [ghost-storage-base](https://npm.io/package/ghost-storage-base.md) ^0.0.4
- [@google-cloud/storage](https://npm.io/package/@google-cloud/storage.md) ^4.6.0

## Recent versions

- 1.0.1 (latest) — 2020-04-03
- 1.0.0 — 2020-03-24

## README

# ghost-storage-google-cloud

Google Cloud storage adapter for Ghost.

## Installation

```bash
cd /path/to/your/ghost/installation
npm install ghost-storage-google-cloud
mkdir -p content/adapters/storage
cp -r node_modules/ghost-storage-google-cloud content/adapters/storage/ghost-storage-google-cloud
```

## Usage

Add the following to your configuration file and modify it accordingly.

```json
"storage": {
    "active": "ghost-storage-google-cloud",
    "ghost-storage-google-cloud": {
        "bucket": "<your bucket name here>",
        "baseUrl": "https://example.com",
        "maxAge": 3600,
        "projectId": "example"
    }
}
```

Here's a comprehensive list of configurations:

| **Name**    | **Required?** | **Description**                                                          | **Environment variable (prefixed with `GHOST_GOOGLE_CLOUD_`)** |
|-------------|---------------|--------------------------------------------------------------------------|----------------------------------------------------------------|
| `baseUrl`   | no            | Base URL of newly saved images. Uses Google Cloud Storage URL by default | `BASE_URL`                                                     |
| `bucket`    | yes           | Name of the storage bucket                                               | `BUCKET`                                                       |
| `maxAge`    | no            | Seconds it takes for cache to expire. Defaults to one year               | `MAX_AGE`                                                      |
| `projectId` | no            | The ID of the project that should be billed                              | `PROJECT_ID`                                                   |

## License

[MIT](LICENSE.txt)

---
_Source: https://npm.io/package/ghost-storage-google-cloud · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
