Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rkfella committed Nov 3, 2024
1 parent 60c3241 commit 18a9105
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Security-Policy" content="
default-src 'none';
img-src 'self' https://static.${PUBLIC_DOMAIN}/429-too-many-requests.png;
script-src 'none';
style-src 'unsafe-inline';
connect-src 'none';
font-src 'none';
object-src 'none';
media-src 'none';
child-src 'none';
manifest-src 'none';
worker-src 'none';
">
<title>Too Many Requests</title>
<style>
body {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f8f8f8;
}
img {
max-width: 100%;
height: auto;
}
</style>
</head>
<body>
<img src="https://static.${PUBLIC_DOMAIN}/429-too-many-requests.png" alt="429 Error Image">
</body>
</html>
4 changes: 3 additions & 1 deletion kubernetes/main/apps/network/nginx/external/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |-
Expand Down Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18a9105

Please sign in to comment.