plugin.js 621 Bytes
'use strict';



/*
* nunjucks view config
*/
const nunjucks = {
  enable: true,
  package: 'egg-view-nunjucks'
}


/*
* passport config
*/
const passport = {
  enable: true,
  package: 'egg-passport',
};
const passportLocal = {
  enable: true,
  package: 'egg-passport-local',
};

/*
* redis config
*/
const sessionRedis = {
  enable: true,
  package: 'egg-session-redis',
};

const redis = {
  enable: true,
  package: 'egg-redis',
};


/** @type Egg.EggPlugin */
module.exports = {
  // had enabled by egg
  // static: {
  //   enable: true,
  // }
  nunjucks,
  passport,
  passportLocal,
  sessionRedis,
  redis,
};