From b72318775f3557f86e9daae324c1f02c177c5ba0 Mon Sep 17 00:00:00 2001 From: infra Date: Tue, 31 Oct 2023 20:59:28 -0400 Subject: [PATCH 1/3] Fix helm playground --- charts/langsmith/templates/frontend/configmap.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/charts/langsmith/templates/frontend/configmap.yaml b/charts/langsmith/templates/frontend/configmap.yaml index ffcb67d..fc621f9 100644 --- a/charts/langsmith/templates/frontend/configmap.yaml +++ b/charts/langsmith/templates/frontend/configmap.yaml @@ -28,7 +28,18 @@ data: root /usr/share/nginx/html; } + location ~ /api/playground/ { + rewrite /api/playground/(.*) /$1 break; + chunked_transfer_encoding off; + proxy_set_header Connection ''; + proxy_http_version 1.1; + proxy_buffering off; + proxy_cache off; + proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.playground.name }}:{{ .Values.playground.service.port }}; + } + location = /api/playground { + rewrite /api/playground(.*) $1 break; chunked_transfer_encoding off; proxy_set_header Connection ''; proxy_http_version 1.1; From de52770464cff160204714fe71d3307815536855 Mon Sep 17 00:00:00 2001 From: infra Date: Tue, 31 Oct 2023 20:59:49 -0400 Subject: [PATCH 2/3] Update docs --- charts/langsmith/Chart.yaml | 2 +- charts/langsmith/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/langsmith/Chart.yaml b/charts/langsmith/Chart.yaml index d10572b..292ef3d 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.1.2 +version: 0.1.3 appVersion: "0.1.0" diff --git a/charts/langsmith/README.md b/charts/langsmith/README.md index 7e886d1..4ccab8f 100644 --- a/charts/langsmith/README.md +++ b/charts/langsmith/README.md @@ -1,6 +1,6 @@ # langsmith -![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square) +![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square) Helm chart to deploy the langsmith application and all services it depends on. From 324632867125518db2529cfd742d017d25252442 Mon Sep 17 00:00:00 2001 From: infra Date: Wed, 1 Nov 2023 01:33:21 -0400 Subject: [PATCH 3/3] Fix rewrite --- charts/langsmith/templates/frontend/configmap.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/langsmith/templates/frontend/configmap.yaml b/charts/langsmith/templates/frontend/configmap.yaml index fc621f9..2ac7d22 100644 --- a/charts/langsmith/templates/frontend/configmap.yaml +++ b/charts/langsmith/templates/frontend/configmap.yaml @@ -39,7 +39,7 @@ data: } location = /api/playground { - rewrite /api/playground(.*) $1 break; + rewrite /api/playground / break; chunked_transfer_encoding off; proxy_set_header Connection ''; proxy_http_version 1.1;