From 563342e063c8f3d875d0f3fec82cc2e5574c1ddd Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Mon, 20 Nov 2023 18:04:49 +0100 Subject: [PATCH] feat(nginx): Add beautiful custom error page --- infrastructure/nginx-system/release.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/infrastructure/nginx-system/release.yaml b/infrastructure/nginx-system/release.yaml index 850d72685..6ba6c3537 100644 --- a/infrastructure/nginx-system/release.yaml +++ b/infrastructure/nginx-system/release.yaml @@ -91,6 +91,8 @@ data: enable-brotli: "true" use-http2: "true" proxy-buffer-size: 8k + custom-http-errors: >- + 401,403,404,500,501,502,503 replicaCount: 2 minAvailable: 1 resources: @@ -160,6 +162,16 @@ data: annotations: description: Too many 4XXs summary: More than 5% of all requests returned 4XX, this requires your attention + defaultBackend: + enabled: true + image: + repository: ghcr.io/tarampampam/error-pages + tag: 2.26.0 + extraEnvs: + - name: TEMPLATE_NAME # Optional: change the default theme + value: connection + - name: SHOW_DETAILS # Optional: enables the output of additional information on error pages + value: 'false' rbac: create: true scope: false -- GitLab