Skip to content

Commit

Permalink
fix: add auth routes (#160)
Browse files Browse the repository at this point in the history
* fix: add auth routes

* fix: add auth routes

* fix: add auth routes
  • Loading branch information
langchain-infra authored Sep 25, 2024
1 parent 5977bb9 commit 9f51abb
Show file tree
Hide file tree
Showing 2 changed files with 21 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.7.7
version: 0.7.8
appVersion: "0.7.32"
20 changes: 20 additions & 0 deletions charts/langsmith/templates/frontend/config-map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ data:
proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}:{{ .Values.backend.service.port }};
}
# Backend Routes
location ~ /{{ .Values.ingress.subdomain }}/api/v1/auth {
rewrite /{{ .Values.ingress.subdomain }}/api/v1/(.*) /$1 break;
proxy_set_header Connection '';
proxy_http_version 1.1;
proxy_buffering off;
proxy_cache off;
proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.platformBackend.name }}:{{ .Values.platformBackend.service.port }};
}
# Backend Routes
location ~ /{{ .Values.ingress.subdomain }}/api/v1 {
rewrite /{{ .Values.ingress.subdomain }}/api/v1/(.*) /api/v1/$1 break;
Expand Down Expand Up @@ -188,6 +198,16 @@ data:
proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.backend.name }}:{{ .Values.backend.service.port }};
}
# Auth
location ~ /api/v1/auth {
rewrite /api/v1/(.*) /$1 break;
proxy_set_header Connection '';
proxy_http_version 1.1;
proxy_buffering off;
proxy_cache off;
proxy_pass http://{{ include "langsmith.fullname" . }}-{{ .Values.platformBackend.name }}:{{ .Values.platformBackend.service.port }};
}
# Backend Routes
location ~ /api/v1 {
proxy_set_header Connection '';
Expand Down

0 comments on commit 9f51abb

Please sign in to comment.