File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
modules/azure/frontdoor_standard Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ resource "azurerm_cdn_frontdoor_endpoint" "fd_endpoint" {
3232resource "azurerm_cdn_frontdoor_custom_domain" "fd_default_domain" {
3333 name = " default"
3434 cdn_frontdoor_profile_id = azurerm_cdn_frontdoor_profile. fd_profile . id
35- host_name = " {var.name}.azurefd.net"
35+ host_name = " $ {var . name } .azurefd.net"
3636
3737 tls {
3838 certificate_type = " ManagedCertificate"
@@ -147,10 +147,11 @@ resource "azurerm_cdn_frontdoor_route" "fd_forwarding_routes" {
147147 cdn_frontdoor_origin_ids = [azurerm_cdn_frontdoor_origin . fd_origins [each . value . origin_group_name ]. id ]
148148 cdn_frontdoor_custom_domain_ids = [azurerm_cdn_frontdoor_custom_domain . fd_custom_domains [each . value . custom_domain_name ]. id ]
149149
150- forwarding_protocol = " HttpsOnly "
150+ enabled = each . value . enabled
151151 patterns_to_match = each. value . patterns_to_match
152152 supported_protocols = each. value . supported_protocols
153- enabled = each. value . enabled
153+ https_redirect_enabled = false
154+ forwarding_protocol = " HttpsOnly"
154155 link_to_default_domain = false
155156}
156157
You can’t perform that action at this time.
0 commit comments