diff --git a/dns.tf b/dns.tf index 934efa7..b04ce22 100644 --- a/dns.tf +++ b/dns.tf @@ -7,9 +7,9 @@ terraform { } backend "http" { - address = "https://asciireactor.com/api/v4/projects/131/terraform/state/personal-database" - lock_address = "https://asciireactor.com/api/v4/projects/131/terraform/state/personal-database/lock" - unlock_address = "https://asciireactor.com/api/v4/projects/131/terraform/state/personal-database/lock" + address = "https://asciireactor.com/api/v4/projects/131/terraform/state/library-app" + lock_address = "https://asciireactor.com/api/v4/projects/131/terraform/state/library-app/lock" + unlock_address = "https://asciireactor.com/api/v4/projects/131/terraform/state/library-app/lock" lock_method = "POST" unlock_method = "DELETE" retry_wait_min = 5 @@ -18,53 +18,36 @@ terraform { provider "namecheap" {} -variable "saline-rproxy" { +variable "host-rproxy" { type = string default = "rprxy-0.saline.o4data.net." } -variable "stashbox-vip" { - type = string - default = "stashbox.delhi.o4data.net." -} - resource "namecheap_domain_records" "othonotes" { domain = "othonotes.com" - record { - hostname = "@" - address = var.saline-rproxy - type = "ALIAS" - ttl = 300 - } - record { - hostname = "www" - address = "othonotes.com." - type = "CNAME" - } + record { + hostname = "@" + address = var.host-rproxy + type = "ALIAS" + ttl = 300 + } + record { + hostname = "www" + address = "othonotes.com." + type = "CNAME" + } } resource "namecheap_domain_records" "othostash" { domain = "othostash.com" - - record { - hostname = "@" - address = var.stashbox-vip - type = "ALIAS" - ttl = 300 - } - record { - hostname = "www" - address = "othostash.com." - type = "CNAME" - } - record { - hostname = "websites" - address = var.saline-rproxy - type = "CNAME" - } - record { - hostname = "filemanager" - address = var.saline-rproxy - type = "CNAME" - } + record { + hostname = "websites" + address = var.host-rproxy + type = "CNAME" + } + record { + hostname = "filemanager" + address = var.host-rproxy + type = "CNAME" + } }