Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Sun committed Oct 24, 2024
1 parent 92b16ee commit 4a19740
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions ESLZ/front-door.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ front_doors ={
patterns_to_match = ["/*"]
forwarding_protocol = "MatchRequest"
enabled = true
link_to_default_domain = true
https_redirect_enabled = true
cache ={
enabled = false
query_string_caching_behavior = "IgnoreQueryString"
Expand Down
6 changes: 3 additions & 3 deletions module.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ resource "azurerm_cdn_frontdoor_route" "route" {
cdn_frontdoor_origin_ids = [azurerm_cdn_frontdoor_origin.frontdoor_origin.id]
cdn_frontdoor_custom_domain_ids = local.custom_domain_ids
cdn_frontdoor_rule_set_ids = [azurerm_cdn_frontdoor_rule_set.rule_set.id]
link_to_default_domain = false
https_redirect_enabled = true
link_to_default_domain = try(var.front_door.route.link_to_default_domain ,true)
https_redirect_enabled = try(var.front_door.route.https_redirect_enabled ,true)
supported_protocols = try(var.front_door.route.supported_protocols, ["Https", "Http"])
patterns_to_match = try(var.front_door.route.patterns_to_match, ["/*"])
forwarding_protocol = try(var.front_door.route.forwarding_protocol, "MatchRequest")
enabled = try(var.front_door.route.enabled,false)
enabled = try(var.front_door.route.enabled,true)
dynamic "cache" {
for_each = try(var.front_door.route.cache.enable, false) != false ? [1] : []
content {
Expand Down

0 comments on commit 4a19740

Please sign in to comment.