Use sys hostname for walker domains

This commit is contained in:
Jake Howard
2023-04-23 18:08:38 +01:00
parent dc75f0942a
commit 8f9e89d4f6
2 changed files with 20 additions and 18 deletions

View File

@ -188,11 +188,12 @@ resource "cloudflare_record" "jakehowardtech_matrix_admin" {
ttl = 1
}
# Cloudflare supports CNAME flattening - so this is ok
resource "cloudflare_record" "jakehowardtech_apex" {
zone_id = cloudflare_zone.jakehowardtech.id
name = "@"
value = vultr_instance.walker.main_ip
type = "A"
value = cloudflare_record.sys_domain_walker.hostname
type = "CNAME"
ttl = 1
}