From e6e116fa2508e457a706c217998b6645a12f52da Mon Sep 17 00:00:00 2001 From: Rohow Date: Fri, 1 Nov 2024 20:50:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(nginx):=20=E5=A2=9E=E5=8A=A0429=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/infra/net/nginx/helmchart.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/infra/net/nginx/helmchart.yaml b/apps/infra/net/nginx/helmchart.yaml index e7b2839..2fa0398 100644 --- a/apps/infra/net/nginx/helmchart.yaml +++ b/apps/infra/net/nginx/helmchart.yaml @@ -50,6 +50,7 @@ spec: location-snippet: | # 限速配置 limit_req zone=global_limit burst=30 nodelay; + limit_req_status 429; # 启用geoip2模块 use-geoip: "false" use-geoip2: "true" @@ -154,7 +155,7 @@ spec: image: registry: docker.io image: devcm/default-backend - tag: latest + tag: v0.1.0 # 和controller部署同一节点 nodeSelector: svccontroller.k3s.cattle.io/enablelb: "true"