diff --git a/kubernetes/main/apps/network/nginx/external/error-pages/429.html.yaml b/kubernetes/main/apps/network/nginx/external/error-pages/429.html.yaml new file mode 100644 index 000000000..94c582ef8 --- /dev/null +++ b/kubernetes/main/apps/network/nginx/external/error-pages/429.html.yaml @@ -0,0 +1,38 @@ + + + + + + + Too Many Requests + + + + 429 Error Image + + diff --git a/kubernetes/main/apps/network/nginx/external/helmrelease.yaml b/kubernetes/main/apps/network/nginx/external/helmrelease.yaml index 9aa964b0a..2df92824f 100644 --- a/kubernetes/main/apps/network/nginx/external/helmrelease.yaml +++ b/kubernetes/main/apps/network/nginx/external/helmrelease.yaml @@ -85,7 +85,7 @@ spec: values: ["external"] allowSnippetAnnotations: true config: - custom-http-errors: "504,503,502,501,500,410,404,403,400" + custom-http-errors: "504,503,502,501,500,429,410,404,403,400" enable-modsecurity: true enable-owasp-modsecurity-crs: true modsecurity-snippet: |- @@ -178,6 +178,8 @@ spec: path: "500.html" - key: "500.json" path: "500.json" + - key: "429.html" + path: "429.html" - key: "410.html" path: "410.html" - key: "404.html" diff --git a/kubernetes/main/apps/network/nginx/external/kustomization.yaml b/kubernetes/main/apps/network/nginx/external/kustomization.yaml index 2b2ffc494..b56fef06c 100644 --- a/kubernetes/main/apps/network/nginx/external/kustomization.yaml +++ b/kubernetes/main/apps/network/nginx/external/kustomization.yaml @@ -18,6 +18,7 @@ configMapGenerator: - 501.json=./error-pages/501.json.yaml - 500.html=./error-pages/500.html.yaml - 500.json=./error-pages/500.json.yaml + - 429.html=./error-pages/429.html.yaml - 410.html=./error-pages/410.html.yaml - 404.html=./error-pages/404.html.yaml - 404.json=./error-pages/404.json.yaml