Authored by 毕凯

Merge branch 'hotfix/limiterPath' into 'gray'

'limiter-path'



See merge request !1307
@@ -154,8 +154,6 @@ try { @@ -154,8 +154,6 @@ try {
154 app.use(itemNameHandler); 154 app.use(itemNameHandler);
155 app.use(setYohoData()); 155 app.use(setYohoData());
156 app.use(user()); 156 app.use(user());
157 - app.use(seo());  
158 - app.use(setPageInfo());  
159 157
160 // 请求限制中间件 158 // 请求限制中间件
161 if (!app.locals.devEnv) { 159 if (!app.locals.devEnv) {
@@ -166,6 +164,8 @@ try { @@ -166,6 +164,8 @@ try {
166 app.use(devtools()); 164 app.use(devtools());
167 } 165 }
168 166
  167 + app.use(seo());
  168 + app.use(setPageInfo());
169 app.use(layoutTools()); 169 app.use(layoutTools());
170 app.use(pageCache()); 170 app.use(pageCache());
171 app.use(routeEncode.md); 171 app.use(routeEncode.md);
@@ -26,29 +26,26 @@ const IP_WHITE_LIST = [ @@ -26,29 +26,26 @@ const IP_WHITE_LIST = [
26 const PATH_WHITE_LIST = [ 26 const PATH_WHITE_LIST = [
27 '/3party/check', 27 '/3party/check',
28 '/3party/check/submit', 28 '/3party/check/submit',
29 - '/passport/imagesNode',  
30 - '/passport/cert/headerTip',  
31 '/passport/captcha/get', 29 '/passport/captcha/get',
32 - '/passport/images',  
33 '/passport/img-check.jpg', 30 '/passport/img-check.jpg',
34 '/passport/geetest/register', 31 '/passport/geetest/register',
35 - '/activity/individuation/productLst', 32 + '/activity/individuation',
36 '/activity/individuation/coupon', 33 '/activity/individuation/coupon',
37 '/activity/share', 34 '/activity/share',
38 '/activity/wechat/share', 35 '/activity/wechat/share',
39 '/activity/wechat/1111', 36 '/activity/wechat/1111',
40 '/api/switch', 37 '/api/switch',
41 '/passport/login/user', 38 '/passport/login/user',
42 - '/api/sw.js',  
43 - '/api/manifest.json',  
44 - '/api/activity/sw.js',  
45 - '/api/activity/manifest.json',  
46 - '/api/hfxRaNY27L.txt',  
47 - '/api/activity/hfxRaNY27L.txt',  
48 - '/api/shop/hfxRaNY27L.txt',  
49 - '/api/product/hfxRaNY27L.txt',  
50 - '/api/.well-known/apple-app-site-association',  
51 - '/sitemap.xml' 39 + '/sw.js',
  40 + '/manifest.json',
  41 + '/activity/sw.js',
  42 + '/activity/manifest.json',
  43 + '/hfxRaNY27L.txt',
  44 + '/activity/hfxRaNY27L.txt',
  45 + '/product/shop/hfxRaNY27L.txt',
  46 + '/product/hfxRaNY27L.txt',
  47 + '/.well-known/apple-app-site-association',
  48 + '/service/sitemap.xml'
52 ]; 49 ];
53 50
54 const limiter = (rule, policy, context) => { 51 const limiter = (rule, policy, context) => {