Skip to content

Commit

Permalink
Add healthchecks supporto on traefik routing
Browse files Browse the repository at this point in the history
  • Loading branch information
trottomv committed Jan 10, 2024
1 parent 13a5663 commit d5ff00c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions bootstrap/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,17 +323,20 @@ def register_environment_tfvars(self, *vars, env_slug=None):
def collect_tfvars(self):
"""Collect the base, cluster and environment Terraform variables."""
self.register_environment_tfvars(("registry_server", "registry.gitlab.com"))
backend_service_paths = ["/"]
frontend_service_paths = ["/"]
backend_service_paths = ["/", f"/{self.backend_service_slug}"]
frontend_service_paths = ["/", f"/{self.frontend_service_slug}"]
if self.frontend_service_slug:
self.register_environment_tfvars(
("frontend_service_paths", frontend_service_paths, "list"),
("frontend_service_port", None, "num"),
"frontend_service_slug",
)
backend_service_paths = ["/admin", "/api", "/static"] + (
["/media"] if self.media_storage == "local" else []
)
backend_service_paths = [
"/admin",
"/api",
"/static",
f"/{self.backend_service_slug}",
] + (["/media"] if self.media_storage == "local" else [])
if self.backend_service_slug:
self.register_environment_tfvars(
("backend_service_paths", backend_service_paths, "list"),
Expand Down

0 comments on commit d5ff00c

Please sign in to comment.