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 0857ee6 commit a71c69a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions infra/deploy/auth/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
Expand Down
2 changes: 1 addition & 1 deletion infra/modules/application_gateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a71c69a

Please sign in to comment.