diff --git a/ahoskingit/terraform/dns_ahosking.tf b/ahoskingit/terraform/dns_ahosking.tf index 801586d..268650b 100644 --- a/ahoskingit/terraform/dns_ahosking.tf +++ b/ahoskingit/terraform/dns_ahosking.tf @@ -70,6 +70,24 @@ resource "cloudflare_record" "ahosking_radarr" { proxied = true } +resource "cloudflare_record" "ahosking_food" { + zone_id = cloudflare_zone.ahosking_com.id + name = "food" + type = "CNAME" + ttl = "1" + proxied = true + value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking_com.zone]) +} + +resource "cloudflare_record" "ahosking_git" { + zone_id = cloudflare_zone.ahosking_com.id + name = "git" + type = "CNAME" + ttl = "1" + proxied = true + value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking_com.zone]) +} + # email MX value for DNS resource "cloudflare_record" "ahosking_mx" { zone_id = cloudflare_zone.ahosking_com.id diff --git a/ahoskingit/terraform/dns_ahoskingit.tf b/ahoskingit/terraform/dns_ahoskingit.tf index 7fd0679..a123a1c 100644 --- a/ahoskingit/terraform/dns_ahoskingit.tf +++ b/ahoskingit/terraform/dns_ahoskingit.tf @@ -187,9 +187,9 @@ resource "cloudflare_record" "support_ahoskingit" { resource "cloudflare_record" "git_ahoskingit" { zone_id = cloudflare_zone.ahoskingit_com.id name = "git" - type = "A" - value = var.home_ip - #proxied = "true" + type = "CNAME" + proxied = "true" + value = join(".", [cloudflare_record.home_ahoskingit.name, cloudflare_zone.ahoskingit_com.zone]) } resource "cloudflare_record" "gitlab_ahoskingit" {