Skip to content

Commit

Permalink
fix: add /ok back
Browse files Browse the repository at this point in the history
  • Loading branch information
langchain-infra committed Jul 3, 2024
1 parent ad854c0 commit af7fc95
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/langsmith/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ maintainers:
email: [email protected]
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"
37 changes: 37 additions & 0 deletions charts/langsmith/templates/frontend/config-map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 '';
Expand All @@ -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 '';
Expand Down Expand Up @@ -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 '';
Expand All @@ -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;
Expand Down

0 comments on commit af7fc95

Please sign in to comment.