Git Product home page Git Product logo

ghost-dreamobjects-storage's Introduction

NPM

Ghost DreamObjects Storage

This module allows you to store media file at Dreamhost's DreamObects instead of storing on local machine, especially helpful for ghost blog hosted at heroku (no local storage). Work with latest version 0.9.0 of Ghost!

Installation

# run from ghost root directory
npm install --save ghost-dreamobjects-storage

Create storage module

Create Storage plugin:
# run from ghost root directory
mkdir -p content/storage/ghost-dreamobjects-storage
echo "'use strict';" > content/storage/ghost-dreamobjects-storage/index.js
echo "module.exports = require('ghost-dreamobjects-storage');" >> content/storage/ghost-dreamobjects-storage/index.js
The file content/storage/ghost-dreamobjects-storage/index.js should look like this:
'use strict';
module.exports = require('ghost-dreamobjects-storage');

Configuration

Create new DreamObjects bucket (and if needed a new user with permissions allowed to put and get object from that bucket). Enable public access to this folder so that your img URLs are accessible for those browsing your site. Note the new the bucket name, access key, and access key secret.

Add a storage block to file config.js in each environment as below:

storage: {
  active: 'ghost-dreamobjects-storage',
  'ghost-dreamobjects-storage': {
    accessKeyId: '<access key or env var that will be passed to app>',
    secretAccessKey: '<access secret or env var that will be passed to app>',
    bucket: '<bucket name>'
  }
}

Copyright & License

Portions by Hoang Pham Huu Copyright (c) 2015 Hoang Pham Huu [email protected]

Portions by Nicholas Marus Copyright (c) 2016 Nicholas Marus [email protected]

Released under the MIT license.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.