Skip to content

Commit

Permalink
fix: Update backend to a dedicated endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Blakeinstein committed Nov 26, 2024
1 parent a3af665 commit 7d94cc2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions deployment/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ def create_service(self):
protocol="TCP",
expose=True,
app_protocol="http",
host=f"{self.application_set_name}.{self.base_domain_url}",
path="/api/",
host=f"{self.application_set_name}-{BACKEND_SERVICE_NAME}.{self.base_domain_url}",
)
],
mounts=[
Expand Down
1 change: 1 addition & 0 deletions deployment/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
VECTOR_DB_HELM_NAME = "qdrant"
QDRANT_SERVICE_UI_NAME = "qdrant-ui"
AUDIO_SERVICE_NAME = "whisper"
NGINX_SERVICE_NAME = "nginx"
4 changes: 2 additions & 2 deletions deployment/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Service,
)

from deployment.config import FRONTEND_SERVICE_NAME
from deployment.config import BACKEND_SERVICE_NAME, FRONTEND_SERVICE_NAME


class Frontend:
Expand All @@ -28,7 +28,7 @@ def create_service(self):
dockerfile_path="./frontend/Dockerfile",
build_context_path="./frontend",
build_args={
"VITE_QA_FOUNDRY_URL": f"https://{self.application_set_name}.{self.base_domain_url}/api",
"VITE_QA_FOUNDRY_URL": f"https://{self.application_set_name}-{BACKEND_SERVICE_NAME}.{self.base_domain_url}",
"VITE_DOCS_QA_STANDALONE_PATH": "/",
"VITE_DOCS_QA_ENABLE_STANDALONE": "true",
"VITE_DOCS_QA_DELETE_COLLECTIONS": "true",
Expand Down

0 comments on commit 7d94cc2

Please sign in to comment.