Skip to content

kvaillant/express-brute-couchbase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-brute-couchbase

=======================

A Couchbase store for express-brute

Installation

via npm:

  $ npm install express-brute-couchbase

Usage

var ExpressBrute = require('express-brute'),
	CouchbaseStore = require('express-brute-couchbase');

var store = new CouchbaseStore('http://127.0.0.1:8091');
var bruteforce = new ExpressBrute(store);

app.post('/auth',
	bruteforce.prevent, // error 403 if we hit this route too often
	function (req, res, next) {
		res.send('Success!');
	}
);

Options

  • couchoptions Couchbase cluster options for couchnode constructor, is json. default : ({ cluster: 'http://localhost:8091', bucket: 'express-brute-store', password: '' })
  • options
    • prefix An optional prefix for each couchbase key, in case you are sharing your couchbase servers with something generating its own keys.

For details see couchnode.

About

A Couchbase store for ExpressBrute

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published