All Projects → MT-Libraries → ghost-oss-store

MT-Libraries / ghost-oss-store

Licence: other
Ghost Aliyun OSS storage module.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ghost-oss-store

ghost-storage-cloudinary
🚀 A fully-featured and deeply tested Cloudinary Ghost storage adapter
Stars: ✭ 49 (+75%)
Mutual labels:  ghost, ghost-storage-adapter
whisper
Whisper Ghost Theme
Stars: ✭ 47 (+67.86%)
Mutual labels:  ghost
Vegile
This tool will setting up your backdoor/rootkits when backdoor already setup it will be hidden your spesisifc process,unlimited your session in metasploit and transparent. Even when it killed, it will re-run again. There always be a procces which while run another process,So we can assume that this procces is unstopable like a Ghost in The Shell
Stars: ✭ 601 (+2046.43%)
Mutual labels:  ghost
heidi
A port of Mark Otto's Hyde theme to Ghost
Stars: ✭ 34 (+21.43%)
Mutual labels:  ghost
Public
The game is about a group of "terrorists" who have traitors among them, out to kill everyone who's not a traitor.
Stars: ✭ 94 (+235.71%)
Mutual labels:  ghost
aesto
Free Ghost theme with membership support. Minimal content focused design with multi author supported.
Stars: ✭ 31 (+10.71%)
Mutual labels:  ghost
Daring
A minimal theme for Ghost.
Stars: ✭ 32 (+14.29%)
Mutual labels:  ghost
gatsby-attila-theme-ghost
A Gatsby theme plugin for creating blogs from headless Ghost CMS.
Stars: ✭ 16 (-42.86%)
Mutual labels:  ghost
starter
A clean theme for Ghost blog
Stars: ✭ 26 (-7.14%)
Mutual labels:  ghost
donnie-dark
Donnie Dark is dark, responsive, customizable theme for Ghost 0.5+ blogs. Name of the theme is hats-off for a great movie.
Stars: ✭ 20 (-28.57%)
Mutual labels:  ghost
Alto
A clean, minimalist theme featuring a light and dark mode for Ghost
Stars: ✭ 109 (+289.29%)
Mutual labels:  ghost
Wave
A podcast/blog theme for Ghost
Stars: ✭ 60 (+114.29%)
Mutual labels:  ghost
nuxt-ghost
Easy Ghost content API integration with Nuxt.js.
Stars: ✭ 27 (-3.57%)
Mutual labels:  ghost
tumblr-to-ghost
Tumblr exporter to Ghost importer
Stars: ✭ 26 (-7.14%)
Mutual labels:  ghost
gatsby-london-after-midnight
A free, open source, image-concentric starter for GatsbyJS
Stars: ✭ 37 (+32.14%)
Mutual labels:  ghost
ghost-on-github-pages
💻⏰ Ghost on Github Pages. Build and deploy Ghost for free in a few minutes.
Stars: ✭ 48 (+71.43%)
Mutual labels:  ghost
Edge
A visually aesthetic portfolio theme for Ghost
Stars: ✭ 61 (+117.86%)
Mutual labels:  ghost
Prometheus
🌈 A Clean And Modern Ghost Theme with Progressive Web Apps (PWA)
Stars: ✭ 94 (+235.71%)
Mutual labels:  ghost
Casper-XYZ
Custom Ghost theme for my blog, based on Casper
Stars: ✭ 36 (+28.57%)
Mutual labels:  ghost
ghost
The Ghost Programming Language
Stars: ✭ 43 (+53.57%)
Mutual labels:  ghost

Ghost Aliyun OSS Storage

NPM version

This Ghost custom storage module allows you to store media file with Aliyun OSS instead of storing at local machine.

Supported

  • 1.x
  • 0.x

Installation

Via NPM

  • Install Oss storage module

    npm install ghost-oss-store
    
  • Make the storage folder if it doesn't exist yet

    mkdir -p content/adapters/storage
    
  • Create a script named "oss-store.js", content as follow:

//  content/adapters/storage/oss-store.js

module.exports = require('ghost-oss-store');

Via Git

In order to replace the storage module, the basic requirements are:

  • Create a new folder inside /content called /storage

  • Clone this repo to /storage

    cd [path/to/ghost]/content/storage
    mkdir oss-store && cd oss-store
    git clone https://github.com/MT-Libraries/ghost-oss-store ./
    
  • Install dependencies

    npm install
    

Configuration

In your config.js file, you'll need to add a new storage block to whichever environment you want to change:

storage: {
  active: 'oss-store',
  'oss-store': {
    accessKeyId: 'accessKeyId',
    accessKeySecret: 'accessKeySecret',
    bucket: 'bucket',
    region: 'oss-cn-hangzhou',
    origin: 'https://www.thonatos.com/', // if you have bind custom domain to oss bucket. or false             
    fileKey: {
      safeString: true, // use Ghost safaString util to rename filename, e.g. Chinese to Pinyin
      prefix: 'ghost/',  // { String } will be formated by moment.js, using `[]` to escape,
      suffix: '' // { String } string added before file extname.
    }
  }
}

License

Read LICENSE

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].