'use strict';


/**
 * Dependencies
 */
var path = require('path');
var redis = require('redis');
var redisSettings = require('./redis');

/**
 * Middleware options
 */
module.exports = {
  'koa-session': {
    key: 'koan:sess'
  }, // Sessions
  'koa-response-time': true, // X-Response-Time
  'koa-logger': true, // Logger
  'koan-errors': {
    template: path.join(process.cwd(), 'views', 'errors.html')
  },
  'koa-conditional-get': true, // Conditional GET support
  'koa-etag': true, // ETag support
  'koa-compress': true, // Response compression
  'koa-ratelimit': false, // Rate limiting
//  {
//    max: 100,
//    duration: 60000,
//    db: redis.createClient(redisSettings.port, redisSettings.host, redisSettings.options)
//  }, // Limiting rate (Redis should be running)
  'koa-static': path.join(process.cwd(), 'public') // Public folder
};

@@ -158,16 +158,231 @@
 options%0A
+ * Note: packages, corresponding to the middleware turned on (not %60false%60)%0A * in the following configuration must be installed and added to %60package.json%60%0A * file of the project: npm install --save %3CmiddlewareName%3E%0A
  */%0Amodu

Comment on middleware installation.