1.0.2 • Published 5 years ago

mead-plugin-source-webfolder v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

mead-plugin-source-webfolder

npm versionBuild StatusCoverage StatusDependency status

Web folder source for the Mead image transformer service - loads images from a path on a remote HTTP(s) server.

Installation

# Bundled with mead by default, but if you're feeling frisky
npm install --save mead-plugin-source-webfolder

Usage

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
      }
    }
  }]
}

License

MIT-licensed. See LICENSE.