-
Install ghost-cloudinary-storage from npm.
npm install ghost-cloudinary-storage
-
Login to Cloudinary's dashboard and grab your credentials.
-
Move the plugin in a folder where Ghost will find it.
cp -r node_modules/ghost-cloudinary-storage content/storage/ghost-cloudinary-storage
-
add a storage entry in your
config.js
file
database: {
...
},
storage: {
active: 'ghost-cloudinary-store',
'ghost-cloudinary-store': {
secure: true, // to use https
cloud_name: 'my_cloud_name',
api_key: 'my_api_key',
api_secret: 'my_api_secret'
}
}
- Done, now when you upload an image from Ghost gui it will be hosted to your cloudinary account instead of locally.