Skip to content

jochumdev/ghost-storage-minio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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 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:

{
  "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:

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

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

License

BSD 2-Clause

About

MinIO Storage Adapter for Ghost

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •