Skip to content

Commit

Permalink
feat: added components variable in rewrite urls
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-calabrese committed Jul 23, 2024
1 parent 93aa0b5 commit 21218cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions app_gateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ resource "azurerm_application_gateway" "this" {
path = rewrite_rule.value.url.path
query_string = rewrite_rule.value.url.query_string
reroute = rewrite_rule.value.url.reroute
components = rewrite_rule.value.url.components
}
}
}
Expand Down
7 changes: 4 additions & 3 deletions app_gateway/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,10 @@ variable "rewrite_rule_sets" {
}))

url = object({
path = string # The URL path to rewrite.
query_string = string # The query string to rewrite.
reroute = optional(bool, false) # Whether the URL path map should be reevaluated after this rewrite has been applied.
path = string # The URL path to rewrite.
query_string = string # The query string to rewrite.
reroute = optional(bool, false) # Whether the URL path map should be reevaluated after this rewrite has been applied.
components = optional(string, null) # The components used to rewrite the URL. Possible values are path_only and query_string_only to limit the rewrite to the URL Path or URL Query String only.
})

}))
Expand Down

0 comments on commit 21218cc

Please sign in to comment.