Skip to content

Commit

Permalink
Update dns.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
benchiverton committed Jul 1, 2024
1 parent 6b6c3f6 commit 9d50627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/instance/dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ resource "azurerm_dns_txt_record" "website" {
}

resource "azurerm_container_app_custom_domain" "website" {
name = trimprefix(azurerm_dns_txt_record.website.fqdn, "asuid.")
name = trimsuffix(trimprefix(azurerm_dns_txt_record.website.fqdn, "asuid."), ".")
container_app_id = azurerm_container_app.website.id
certificate_binding_type = "SniEnabled"

Expand Down Expand Up @@ -88,7 +88,7 @@ resource "azurerm_dns_txt_record" "monitoring" {
}

resource "azurerm_container_app_custom_domain" "monitoring" {
name = trimprefix(azurerm_dns_txt_record.monitoring.fqdn, "asuid.")
name = trimsuffix(trimprefix(azurerm_dns_txt_record.monitoring.fqdn, "asuid."), ".")
container_app_id = azurerm_container_app.monitoring.id
certificate_binding_type = "SniEnabled"

Expand Down

0 comments on commit 9d50627

Please sign in to comment.