From 8be806568ebbbff9c00b093453003cce23100826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahlstr=C3=B6m=20Kalle?= Date: Tue, 23 Jan 2024 03:33:21 +0200 Subject: [PATCH] disable custom domain again zzz --- modules/web/app/main.tf | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/modules/web/app/main.tf b/modules/web/app/main.tf index 88d6aec..18f61cd 100644 --- a/modules/web/app/main.tf +++ b/modules/web/app/main.tf @@ -171,22 +171,22 @@ resource "azurerm_cdn_endpoint" "next-cdn-endpoint" { } } -resource "azurerm_cdn_endpoint_custom_domain" "tikweb_cdn_domain" { - name = "web-cdn-${terraform.workspace}-domain" - cdn_endpoint_id = azurerm_cdn_endpoint.next-cdn-endpoint.id - host_name = "cdn.${var.subdomain}.${var.root_zone_name}" - - cdn_managed_https { - certificate_type = "Dedicated" - protocol_type = "ServerNameIndication" - tls_version = "TLS12" - } - - # Deletion may need manual work. - # https://github.com/hashicorp/terraform-provider-azurerm/issues/11231 - # TODO: Add dependencies for creation - depends_on = [azurerm_dns_cname_record.tikweb_cdn_cname_record] -} +# resource "azurerm_cdn_endpoint_custom_domain" "tikweb_cdn_domain" { +# name = "web-cdn-${terraform.workspace}-domain" +# cdn_endpoint_id = azurerm_cdn_endpoint.next-cdn-endpoint.id +# host_name = "cdn.${var.subdomain}.${var.root_zone_name}" + +# cdn_managed_https { +# certificate_type = "Dedicated" +# protocol_type = "ServerNameIndication" +# tls_version = "TLS12" +# } + +# # Deletion may need manual work. +# # https://github.com/hashicorp/terraform-provider-azurerm/issues/11231 +# # TODO: Add dependencies for creation +# depends_on = [azurerm_dns_cname_record.tikweb_cdn_cname_record] +# } resource "azurerm_app_service_custom_hostname_binding" "tikweb_hostname_binding" { hostname = local.fqdn