ybg555 / noteBook

踩坑指南
0 stars 0 forks source link

markdown #2

Closed ybg555 closed 6 years ago

ybg555 commented 8 years ago

markdown

markdown

ybg555 commented 8 years ago

egg-blacklist

TNPM version TNPM downloads build status line coverage branch coverage

About

根据ip过滤非法请求。

Usage

在 {app}/config/plugin.js 中 开启插件:

exports.blacklist = {
  enable: true,
  package: '@ali/egg-blacklist',
};

在 {app}/config/config.**.js 添加 ip 配置

exports.blacklist = {
  ip: [
    '192.168.1.252',
    '127.0.0.1',
  ],
};
ybg555 commented 8 years ago

数据结构

ybg555 commented 8 years ago