Skip to content

Commit

Permalink
disable custom domain again zzz
Browse files Browse the repository at this point in the history
  • Loading branch information
kahlstrm committed Jan 23, 2024
1 parent 33bce33 commit 8be8065
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions modules/web/app/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8be8065

Please sign in to comment.