https://github.com/ifvictr/ghost-storage-google-cloud
☁️ Google Cloud storage adapter for Ghost
https://github.com/ifvictr/ghost-storage-google-cloud
adapter blog ghost google-cloud storage
Last synced: 7 months ago
JSON representation
☁️ Google Cloud storage adapter for Ghost
- Host: GitHub
- URL: https://github.com/ifvictr/ghost-storage-google-cloud
- Owner: ifvictr
- License: mit
- Created: 2019-05-27T06:53:45.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T08:07:26.000Z (about 3 years ago)
- Last Synced: 2025-08-17T01:23:05.769Z (7 months ago)
- Topics: adapter, blog, ghost, google-cloud, storage
- Language: JavaScript
- Homepage: https://npm.im/ghost-storage-google-cloud
- Size: 791 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
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": "",
"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](LICENSE.txt)