Limit and Timeout configurable

Closes #1 and #2
pull/20/head
Johannes J. Schmidt 11 years ago
parent ed33974cd3
commit d06cf8383d

@ -25,6 +25,8 @@ Now CouchDB takes care of the couchmagick process.
[couchmagick]
user = mein-user ; optional
password = secure ; optional
timeout = 10000 ; in ms. Default is 1000
limit = 1000 ; batch size. Default is 100
```
Imagemagick Configuration

@ -21,6 +21,8 @@ var noop = function() {};
couchmagick.get({
address: 'httpd.bind_address',
port: 'httpd.port',
limit: pkg.name + '.limit',
timeout: pkg.name + '.timeout',
auth: {
username: pkg.name + '.username',
password: pkg.name + '.password'
@ -42,9 +44,9 @@ couchmagick.get({
});
var options = {
limit: 100,
limit: config.limit || 100,
feed: 'continuous',
timeout: 1000
timeout: config.timeout || 1000
};
function listen(db, next) {

@ -1,6 +1,6 @@
{
"name": "couchmagick",
"version": "0.1.2",
"version": "1.1.3",
"description": "Run ImageMagicks `convert` on CouchDB documents.",
"main": "index.js",
"preferGlobal": true,

Loading…
Cancel
Save