Foargetting how to CNAME sucks

This commit is contained in:
Alexander Hosking 2021-10-13 11:46:55 -04:00
parent 96c5046aa5
commit 1de394fa81

View File

@ -45,11 +45,11 @@ resource "cloudflare_record" "ahosking_home" {
resource "cloudflare_record" "ahosking_code" {
zone_id = cloudflare_zone.ahosking_com.id
name = "code.ahosking.com"
name = "code"
type = "CNAME"
ttl = "1"
value = cloudflare_record.ahosking_home.name
proxied = "true"
value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking.zone])
proxied = true
}
resource "cloudflare_record" "ahosking_ombi" {
@ -57,8 +57,8 @@ resource "cloudflare_record" "ahosking_ombi" {
name = "ombi.ahosking.com"
type = "CNAME"
ttl = "1"
value = cloudflare_record.ahosking_home.name
proxied = "true"
value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking.zone])
proxied = true
}
resource "cloudflare_record" "ahosking_radarr" {
@ -66,8 +66,8 @@ resource "cloudflare_record" "ahosking_radarr" {
name = "radarr.ahosking.com"
type = "CNAME"
ttl = "1"
value = cloudflare_record.ahosking_home.name
proxied = "true"
value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking.zone])
proxied = true
}
# email MX value for DNS