Skip to content

Commit

Permalink
Merge pull request #409 from truefoundry/feat/nginx
Browse files Browse the repository at this point in the history
fix: Update backend to a dedicated endpoint
  • Loading branch information
mnvsk97 authored Nov 26, 2024
2 parents a3af665 + 4a5bf79 commit f2f18a6
Show file tree
Hide file tree
Showing 2 changed files with 3 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
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 f2f18a6

Please sign in to comment.