From 5d3a43f8d15f716f06c65529aa4c321a0a5c7671 Mon Sep 17 00:00:00 2001 From: Otho Date: Sat, 31 Dec 2022 00:37:21 -0500 Subject: [PATCH] Improve resource formatting and update othostash ALIAS. --- domain.tf | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/domain.tf b/domain.tf index da0c802..d994333 100644 --- a/domain.tf +++ b/domain.tf @@ -21,14 +21,14 @@ provider "namecheap" {} resource "namecheap_domain_records" "othonotes" { domain = "othonotes.com" record { - address = "rprxy-0.saline.o4data.net" hostname = "@" + address = "rprxy-0.saline.o4data.net" type = "ALIAS" ttl = 300 } record { - address = "othonotes.com." hostname = "www" + address = "othonotes.com." type = "CNAME" } } @@ -37,23 +37,24 @@ resource "namecheap_domain_records" "othostash" { domain = "othostash.com" record { - address = "96.78.236.124" hostname = "@" - type = "A" + address = "stashbox.delhi.o4data.net" + type = "ALIAS" + ttl = 300 } record { - address = "othostash.com." hostname = "www" + address = "othostash.com." type = "CNAME" } record { - address = "rprxy-0.saline.o4data.net" hostname = "websites" + address = "rprxy-0.saline.o4data.net" type = "CNAME" } record { - address = "rprxy-0.saline.o4data.net" hostname = "filemanager" + address = "rprxy-0.saline.o4data.net" type = "CNAME" } }