From a71c69a31585f54977eeb1466d61667232036fdd Mon Sep 17 00:00:00 2001 From: Andreas Isnes Date: Sun, 29 Sep 2024 17:17:49 +0200 Subject: [PATCH] update shared infra --- infra/deploy/auth/variables.tf | 4 ++-- infra/modules/application_gateway/main.tf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/infra/deploy/auth/variables.tf b/infra/deploy/auth/variables.tf index 9844b5a7..0a25a0ec 100644 --- a/infra/deploy/auth/variables.tf +++ b/infra/deploy/auth/variables.tf @@ -94,12 +94,12 @@ variable "services" { default = [ { domain = "api" # Must be present - path = "accesspackages" + path = "/" hostname = "index" }, { domain = "frontend" # Must be present - path = "accessmanagement" + path = "/" hostname = "index" } ] diff --git a/infra/modules/application_gateway/main.tf b/infra/modules/application_gateway/main.tf index 94221923..6807b8bc 100644 --- a/infra/modules/application_gateway/main.tf +++ b/infra/modules/application_gateway/main.tf @@ -155,7 +155,7 @@ resource "azurerm_application_gateway" "appgw" { name = "path_rule_container_app_${path_rule.value.domain}_${path_rule.value.hostname}" backend_address_pool_name = "backend_address_pool_container_app_${path_rule.value.domain}_${path_rule.value.hostname}" backend_http_settings_name = "backend_http_settings_container_app_${path_rule.value.domain}_${path_rule.value.hostname}" - paths = ["/${path_rule.value.path}/*", "/${path_rule.value.path}"] + paths = path_rule.value.path == "/" ? ["/*"] : ["/${path_rule.value.path}/*", "/${path_rule.value.path}"] } for_each = toset(var.services)