Skip to content

rexxars/mead-plugin-source-webfolder

Repository files navigation

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.

About

Web folder source for the Mead image transformer service

Resources

License

Stars

Watchers

Forks

Packages

No packages published