From 3ca07e0f4c414e518b3d228eb99c05715fd73240 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Thu, 13 Feb 2025 17:25:08 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7(helm)=20adapt=20helm=20nginx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We adapt the nginx configuration to works with http requests and on the collaboration routes. Requests are light but quite network intensive, so we add a cache system above "collaboration-auth". It means the backend will be called only once every 30 seconds after a 200 response. --- src/helm/impress/Chart.yaml | 2 +- src/helm/impress/values.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/helm/impress/Chart.yaml b/src/helm/impress/Chart.yaml index a4f4e344..c6a63e66 100644 --- a/src/helm/impress/Chart.yaml +++ b/src/helm/impress/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 type: application name: docs -version: 2.2.0-beta.1 +version: 2.2.0-beta.2 appVersion: latest diff --git a/src/helm/impress/values.yaml b/src/helm/impress/values.yaml index 75ee8f7c..3a7ad477 100644 --- a/src/helm/impress/values.yaml +++ b/src/helm/impress/values.yaml @@ -82,7 +82,11 @@ ingressCollaborationWS: ## @param ingressCollaborationWS.annotations.nginx.ingress.kubernetes.io/proxy-send-timeout ## @param ingressCollaborationWS.annotations.nginx.ingress.kubernetes.io/upstream-hash-by annotations: + nginx.ingress.kubernetes.io/auth-cache-key: "$http_authorization" + nginx.ingress.kubernetes.io/auth-cache-duration: 200 30s nginx.ingress.kubernetes.io/auth-response-headers: "Authorization, X-Can-Edit, X-User-Id" + nginx.ingress.kubernetes.io/auth-snippet: | + proxy_set_header Accept "application/json"; nginx.ingress.kubernetes.io/auth-url: https://impress.example.com/api/v1.0/documents/collaboration-auth/ nginx.ingress.kubernetes.io/enable-websocket: "true" nginx.ingress.kubernetes.io/proxy-read-timeout: "86400"