https://github.com/kuwaitdevs/ghost-s3-v3-storage
Store Ghost's media at AWS S3 storage using SDK version 3.
https://github.com/kuwaitdevs/ghost-s3-v3-storage
aws-s3 ghost ghost-cms nodejs storage-adapter
Last synced: about 1 month ago
JSON representation
Store Ghost's media at AWS S3 storage using SDK version 3.
- Host: GitHub
- URL: https://github.com/kuwaitdevs/ghost-s3-v3-storage
- Owner: kuwaitdevs
- License: mit
- Created: 2023-09-08T06:54:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-09T06:45:17.000Z (almost 3 years ago)
- Last Synced: 2026-04-15T16:42:02.641Z (3 months ago)
- Topics: aws-s3, ghost, ghost-cms, nodejs, storage-adapter
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ghost S3 V3 Storage
Store [Ghost's](https://ghost.org/) media at AWS S3 storage using [AWS SDK version 3](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/).
Tested for Ghost version v5.61.3
## Installation
### Via Git
- Login to Ghost server.
```
ssh user@server
```
- Navigate to Ghost root directory.
```
cd [path/to/ghost]
```
- Create the following directory inside Ghost root directory `/content/adapters/storage`.
```
cd /content
mkdir adapters
cd adapters
mkdir storage
```
- Clone this repo inside storage directory.
```
git clone https://github.com/anasnajaa/ghost-s3-v3-storage.git
```
- Install dependencies
```
cd ghost-s3-v3-storage
npm i
```
## Configuration
- Switch back to ghost root dir.
```
cd [path/to/ghost]
```
- Edit config.production.json
```
nano config.production.json
```
Add `storage` block to `config.production.json` and include your AWS S3 configurations:
"storage": {
"active": "ghost-s3-v3-storage",
"ghost-s3-v3-storage": {
"awsAccessKeyId": "",
"awsSecretAccessKey": "",
"awsS3Region": "",
"awsS3Bucket": ""
}
},
- Save and restart Ghost service.
```
systemctl restart ghost.service
```
or
```
ghost restart
```
## Copyright & License
Copyright (c) 2023 Anas Najaa
Released under the [MIT license](https://github.com/anasnajaa/ghost-s3-v3-storage/blob/master/LICENSE).