https://github.com/pinatacloud/pinata-ghost-storage
A Ghost blogging platform storage adapter that allows you to store and serve media on IPFS through Pinata
https://github.com/pinatacloud/pinata-ghost-storage
Last synced: 10 months ago
JSON representation
A Ghost blogging platform storage adapter that allows you to store and serve media on IPFS through Pinata
- Host: GitHub
- URL: https://github.com/pinatacloud/pinata-ghost-storage
- Owner: PinataCloud
- License: mit
- Created: 2022-07-18T14:07:57.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-18T14:22:13.000Z (almost 4 years ago)
- Last Synced: 2025-06-08T11:07:30.170Z (about 1 year ago)
- Language: JavaScript
- Size: 31.3 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Pinata Ghost Storage Adapter
This storage adapter allows you to customize your self-hosted Ghost instance to store media on [Pinata](https://pinata.cloud). Pinata is an [IPFS](https://ipfs.io) media platform.
### How To Use
In the directory where you're running your local instance of Ghost, run the following:
```
mkdir -p ./content/adapters/storage
```
Change into that new directory:
```
cd contact/adapters/storage
```
Clone this repository:
```
git clone https://github.com/PinataCloud/pinata-ghost-storage
```
Change into the newly cloned repo:
```
cd pinata-ghost-storage
```
Install dependencies:
```
npm i
```
Now, you need to configure your Ghost environment. Back at the root of the directory where Ghost is running, find your `config.development.json` (or staging or production if you have multiple config files) and open it in a code editor. Add the following to the main config object:
```json
"storage": {
"active": "pinata-ghost-storage",
"pinata-ghost-storage": {
"gatewayUrl": "https://yourgatewayurl.com",
"pinataKey": "Pinata API Key",
"pinataSecret": "Pinata API Secret"
}
},
```
You can get an API key and secret by signing up for Pinata and going to the API Keys page. The Gateway URL should either be a Dedicated Gateway through Pinata or a public gateway. Note: if you use a public gateway, performance will be significantly slower than when using a Dedicated Gateway.
Save the config file, then restart your local Ghost instance to apply the changes.