nginx_limit_ip.yml 1.87 KB
#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"

# 1:max access , 2:seconds,
ip_qps_limit: "200,2"

# 1: max access,2:seconds
degrade_methods:
    - "app.invitecode.my"
    - "app.coupons.queryUserCouponRemind"
    - "app.yohocoin.total"
    - "app.home.getInfoNum"
    - "app.favorite.getFavoriteCount"
    - "app.giftcard.cardNum"
    - "app.coupons.getCouponNums"
    - "app.coupons.total"
    - "app.Shopping.count"
    - "app.instalment.condition"
    - "app.limitcode.showredpoint"
    - "app.grass.getGrassPubAndFavorNum"
    - "app.product.shopRecommend.cutprice"
    - "app.cutdownprice.top"
    - "ufo.order.summary"
    - "ufo.deposit.queryUserStorageCount"
    - "ufo.seller.orderSummary"
    - "ufo.buyer.orderListNums"
    - "ufo.user.favoriteNum"
    - "ufo.wallet.queryUserWalletInfo"
    - "ufo.user.isFavorite,9999991"
    - "ufo.product.data.search.recommend"
    - "ufo.users.rollNoticeList"
    - "ufo.users.noticeList"
    - "ufo.asssets.details"
    - "ufo.merchant.account"
    - "ufo.user.favoriteList"
    - "ufo.users.listInboxs"
    - "ufo.users.listInboxTypeInfo"
    - "ufo.buyer.bid.publish,9999992"
    - "ufo.user.favoriteAdd,9999992"
    - "ufo.order.videoList"
    - "ufo.product.searchWord"
    - "ufo.order.videos"
    - "ufo.order.getAllCnt,9999991"
    - "app.favorite.cancel,9999992"
    - "app.coupons.get,9999991"