...
|
...
|
@@ -57,7 +57,9 @@ if (config.zookeeperServer) { |
|
|
app.enable('trust proxy');
|
|
|
|
|
|
// 请求限制中间件
|
|
|
app.use(require('./doraemon/middleware/limiter'));
|
|
|
if (!app.locals.devEnv) {
|
|
|
app.use(require('./doraemon/middleware/limiter'));
|
|
|
}
|
|
|
|
|
|
app.set('subdomain offset', 2);
|
|
|
app.use(global.yoho.hbs({
|
...
|
...
|
|