Skip to content

Commit

Permalink
update shared infra
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasisnes committed Sep 29, 2024
1 parent 564eeaf commit 17b8cc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions infra/modules/application_gateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ resource "azurerm_application_gateway" "appgw" {
content {
name = "probe_container_app_${probe.value.domain}_${probe.value.hostname}"
protocol = "Http"
path = "/${probe.value.path}/health"
path = "/health"
pick_host_name_from_backend_http_settings = true
interval = 30
timeout = 30
Expand Down Expand Up @@ -158,7 +158,7 @@ resource "azurerm_application_gateway" "appgw" {
paths = path_rule.value.path == "/" ? ["/*"] : ["/${path_rule.value.path}/*", "/${path_rule.value.path}"]
}

for_each = toset(var.services)
for_each = { for service in var.services : service.hostname => service if url_path_map.key == service.domain }
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
app.UseSwaggerUI();
}

app.MapGet("/health", ([FromServices] ILogger<Program> logger) =>
app.MapGet("/accesspackages/health", ([FromServices] ILogger<Program> logger) =>
{
logger.LogInformation("route=/health");
return Results.Ok();
Expand Down

0 comments on commit 17b8cc4

Please sign in to comment.