nginx_limit_ip-t6.yml
1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#switch true:open,false:close
is_open: true
# white ip list use ip or ip and subnet mask,eg."172.16.6.230,172.16.6.230/16".
white_ips:
- "172.31.0.0/16"
- "10.66.0.0/16"
- "10.67.0.0/16"
- "118.89.221.106/32"
- "123.206.21.19/32"
- "123.206.73.107/32"
- "218.94.75.58/32"
- "218.94.75.50/32"
- "218.94.77.166/32"
- "152.136.125.38/32"
- "62.234.97.135/32"
- "154.8.237.98/32"
- "154.8.237.161/32"
- "152.136.125.65/32"
- "152.136.146.197/32"
- "152.136.134.49/32"
- "62.234.97.218/32"
- "152.136.134.71/32"
- "62.234.94.69/32"
# requests for degraded methods will get http 200 response from nginx directly without passing the request to backend servers.
degrade_methods:
- "app.invitecode.my"
- "app.inbox.getTotal"
- "app.inbox.getAllInboxCatInfo"
- "app.home.getInfoNum"
- "app.favorite.getFavoriteCount"
- "app.favorite.isFavoriteNew"
- "app.Shopping.count"
- "app.grass.getUnreadArticleTotal"
- "app.grass.getGrassPubAndFavorNum"
- "app.grass.getTotalInboxUnread"
- "ufo.order.summary"
- "ufo.seller.orderSummary"
- "ufo.buyer.orderListNums"