Web folder source for the Mead image transformer service - loads images from a path on a remote HTTP(s) server.
# Bundled with mead by default, but if you're feeling frisky
npm install --save mead-plugin-source-webfolder
Note: Bundled with Mead and enabled by default
Your mead configuration file (mead --config <path-to-config.js>
):
module.exports = {
// Load the plugin
plugins: [
require('mead-plugin-source-webfolder')
],
// Define a source using the webfolder proxy
sources: [{
name: 'my-webfolder-source',
adapter: {
type: 'webfolder',
config: {
// All URLs will be relative to this
baseUrl: 'http://mead.science/images',
// Optional timeout in milliseconds before giving up the request (default: 7500)
timeout: 3500
}
}
}]
}
MIT-licensed. See LICENSE.