From af7fc95d9fc0540800cb0cd8c9724845978082ec Mon Sep 17 00:00:00 2001 From: infra Date: Wed, 3 Jul 2024 05:46:19 -0400 Subject: [PATCH] fix: add /ok back --- charts/langsmith/Chart.yaml | 2 +- .../templates/frontend/config-map.yaml | 37 +++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/charts/langsmith/Chart.yaml b/charts/langsmith/Chart.yaml index 33e3216..33d82f7 100644 --- a/charts/langsmith/Chart.yaml +++ b/charts/langsmith/Chart.yaml @@ -5,5 +5,5 @@ maintainers: email: ankush@langchain.dev description: Helm chart to deploy the langsmith application and all services it depends on. type: application -version: 0.6.9 +version: 0.6.10 appVersion: "0.6.21" diff --git a/charts/langsmith/templates/frontend/config-map.yaml b/charts/langsmith/templates/frontend/config-map.yaml index 7700056..8fda8ca 100644 --- a/charts/langsmith/templates/frontend/config-map.yaml +++ b/charts/langsmith/templates/frontend/config-map.yaml @@ -57,6 +57,15 @@ data: } # Hub Backend Routes + + location ~ /{{.Values.ingress.subdomain}}/api-hub/ok { + rewrite /{{ .Values.ingress.subdomain }}/api-hub/(.*) /$1 break; + proxy_set_header Connection ''; + proxy_http_version 1.1; + proxy_buffering off; + proxy_cache off; + proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}:{{ .Values.backend.service.port }}; + } location ~ /{{ .Values.ingress.subdomain }}/api-hub { rewrite /{{ .Values.ingress.subdomain }}/api-hub/(.*) /api/$1 break; proxy_set_header Connection ''; @@ -67,6 +76,16 @@ data: } # Backend Routes + + location ~ /{{.Values.ingress.subdomain}}/api/ok { + rewrite /{{ .Values.ingress.subdomain }}/api/(.*) /$1 break; + proxy_set_header Connection ''; + proxy_http_version 1.1; + proxy_buffering off; + proxy_cache off; + proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}:{{ .Values.backend.service.port }}; + } + location ~ /{{ .Values.ingress.subdomain }}/api { rewrite /{{ .Values.ingress.subdomain }}/api/(.*) /api/$1 break; proxy_set_header Connection ''; @@ -141,6 +160,15 @@ data: } # Hub Backend Routes + location ~ /api-hub/ok { + rewrite /api-hub/(.*) /$1 break; + proxy_set_header Connection ''; + proxy_http_version 1.1; + proxy_buffering off; + proxy_cache off; + proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}:{{ .Values.backend.service.port }}; + } + location ~ /api-hub { rewrite /api-hub/(.*) /$1 break; proxy_set_header Connection ''; @@ -151,6 +179,15 @@ data: } # Backend Routes + location ~ /api/ok { + rewrite /api/(.*) /$1 break; + proxy_set_header Connection ''; + proxy_http_version 1.1; + proxy_buffering off; + proxy_cache off; + proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}:{{ .Values.backend.service.port }}; + } + location ~ /api { proxy_set_header Connection ''; proxy_http_version 1.1;