@@ -7,39 +7,39 @@ data "azurerm_cdn_frontdoor_profile" "this" {
77 resource_group_name = " rg-hub-${ var . hub } -uks-${ var . app_short_name } "
88}
99
10- module "frontdoor_endpoint" {
11- count = var. features . front_door ? 1 : 0
10+ # module "frontdoor_endpoint" {
11+ # count = var.features.front_door ? 1 : 0
1212
13- source = " ../dtos-devops-templates/infrastructure/modules/cdn-frontdoor-endpoint"
13+ # source = "../dtos-devops-templates/infrastructure/modules/cdn-frontdoor-endpoint"
1414
15- providers = {
16- azurerm = azurerm.hub # Each project's Front Door profile (with secrets) resides in Hub since it's shared infra with a Non-live/Live deployment pattern
17- azurerm.dns = azurerm.hub
18- }
15+ # providers = {
16+ # azurerm = azurerm.hub # Each project's Front Door profile (with secrets) resides in Hub since it's shared infra with a Non-live/Live deployment pattern
17+ # azurerm.dns = azurerm.hub
18+ # }
1919
20- cdn_frontdoor_profile_id = data. azurerm_cdn_frontdoor_profile . this [0 ]. id
21- # custom_domains = {
22- # "${var.environment}-domain" = {
23- # host_name = local.hostname # For prod it must be equal to the dns_zone_name to use apex
24- # dns_zone_name = var.dns_zone_name
25- # dns_zone_rg_name = "rg-hub-${var.hub}-uks-public-dns-zones"
26- # }
27- # }
28- name = " ${ var . app_short_name } -${ var . environment } " # environment-specific to avoid naming collisions within a Front Door Profile
20+ # cdn_frontdoor_profile_id = data.azurerm_cdn_frontdoor_profile.this[0].id
21+ # # custom_domains = {
22+ # # "${var.environment}-domain" = {
23+ # # host_name = local.hostname # For prod it must be equal to the dns_zone_name to use apex
24+ # # dns_zone_name = var.dns_zone_name
25+ # # dns_zone_rg_name = "rg-hub-${var.hub}-uks-public-dns-zones"
26+ # # }
27+ # # }
28+ # name = "${var.app_short_name}-${var.environment}" # environment-specific to avoid naming collisions within a Front Door Profile
2929
30- origins = {
31- " ${var.environment}-origin" = {
32- hostname = module.webapp.fqdn
33- origin_host_header = module.webapp.fqdn
34- private_link = {
35- target_type = " managedEnvironments"
36- location = var.region
37- private_link_target_id = var.container_app_environment_id
38- }
39- }
40- }
41- route = {
42- https_redirect_enabled = true
43- supported_protocols = [" Http" , " Https" ]
44- }
45- }
30+ # origins = {
31+ # "${var.environment}-origin" = {
32+ # hostname = module.webapp.fqdn
33+ # origin_host_header = module.webapp.fqdn
34+ # private_link = {
35+ # target_type = "managedEnvironments"
36+ # location = var.region
37+ # private_link_target_id = var.container_app_environment_id
38+ # }
39+ # }
40+ # }
41+ # route = {
42+ # https_redirect_enabled = true
43+ # supported_protocols = ["Http", "Https"]
44+ # }
45+ # }
0 commit comments