From 29e64a2f82739758ff54adc2ab0278344d5f836a Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Wed, 3 Jan 2024 14:46:09 +0100 Subject: [PATCH] fix subdomain for terranix.org --- terranix/terranix.org/targets/namecheap/main.tf | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/terranix/terranix.org/targets/namecheap/main.tf b/terranix/terranix.org/targets/namecheap/main.tf index c529141..dde4bd0 100644 --- a/terranix/terranix.org/targets/namecheap/main.tf +++ b/terranix/terranix.org/targets/namecheap/main.tf @@ -21,20 +21,25 @@ resource "namecheap_domain_records" "terranix" { ttl = local.normal_ttl type = "CNAME" } + record { + address = "terranix.github.io" + hostname = "www" + mx_pref = 10 + ttl = local.normal_ttl + type = "CNAME" + } - # subdomain regex + # matrix.terranix.org record { address = "144.76.13.147" - hostname = "*" + hostname = "matrix" mx_pref = 10 ttl = local.normal_ttl type = "A" } - - # matrix.terranix.org (needed?) record { address = "144.76.13.147" - hostname = "matrix" + hostname = "element" mx_pref = 10 ttl = local.normal_ttl type = "A"