https://github.com/jochumdev/ghost-storage-minio
MinIO Storage Adapter for Ghost
https://github.com/jochumdev/ghost-storage-minio
Last synced: 12 months ago
JSON representation
MinIO Storage Adapter for Ghost
- Host: GitHub
- URL: https://github.com/jochumdev/ghost-storage-minio
- Owner: jochumdev
- License: other
- Created: 2024-05-05T16:04:31.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-04T14:05:19.000Z (almost 2 years ago)
- Last Synced: 2025-01-17T02:40:56.283Z (over 1 year ago)
- Language: JavaScript
- Size: 80.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Ghost Minio Storage
Use Minio (an AWS S3 compatible self-hosted storage service) as an image store for Ghost.
_Please note that this hasn't been fully tested, I'd welcome any type of contributions to improve the codebase._
## Install
```bash
mkdir -p content/adapters/storage/
pushd content/adapters/storage/
git clone https://github.com/jochumdev/ghost-storage-minio.git
cd ghost-storage-minio
npm install
popd
```
## Usage
A huge thanks to Colin Meinke for having his [S3 Adapter](https://github.com/colinmeinke/ghost-storage-adapter-s3) on GitHub for me to adapt my code from.
_In the following configuration examples, do not include 'http' or 'https' as part of your endPoint, the script takes care of that._
To configure, set the following config variables in your `config.{environment}.json` file:
```javascript
{
"storage": {
"active": "ghost-storage-minio",
"ghost-storage-minio": {
'accessKey': 'minio-access-key',
'secretKey': 'minio-secret-key',
'bucket': 'my-bucket',
'endPoint': 'minio.mydomain.com',
'port': 9000, (optional)
'useSSL': true (optional)
}
}
}
```
Or if you are using Docker to manage your Ghost install:
```Dockerfile
ENV storage__active minio
ENV storage__minio__accessKey minio-access-key
ENV storage__minio__secretKey minio-secret-key
ENV storage__minio__bucket my-bucket
ENV storage__minio__endPoint minio.mydomain.com
ENV storage__minio__port 9000 (optional)
ENV storage__minio__useSSL true (optional)
```
Or if you are using `docker-compose`
```yaml
environment:
storage__active: minio
storage__minio__accessKey: minio-access-key
storage__minio__secretKey: minio-secret-key
storage__minio__bucket: my-bucket
storage__minio__endPoint: minio.mydomain.com
storage__minio__port: 9000 (optional)
storage__minio__useSSL: "true" (optional, but quoted because docker-compose yelled at me)
```
## Authors
- Forked from [@kittizz](https://github.com/kittizz/ghost-minio/)
- [@jochumdev](https://github.com/jochumdev)
## License
BSD 2-Clause