2022-12-31 05:24:28 +00:00
|
|
|
terraform {
|
|
|
|
required_providers {
|
|
|
|
namecheap = {
|
|
|
|
source = "namecheap/namecheap"
|
|
|
|
version = "~> 2.1.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
backend "http" {
|
2023-01-01 07:58:34 +00:00
|
|
|
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"
|
2022-12-31 05:24:28 +00:00
|
|
|
lock_method = "POST"
|
|
|
|
unlock_method = "DELETE"
|
|
|
|
retry_wait_min = 5
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
provider "namecheap" {}
|
|
|
|
|
2023-01-01 07:58:34 +00:00
|
|
|
variable "host-rproxy" {
|
2022-12-31 07:48:10 +00:00
|
|
|
type = string
|
2023-01-18 05:24:35 +00:00
|
|
|
default = "rprxy.saline.o4data.net."
|
2022-12-31 07:48:10 +00:00
|
|
|
}
|
|
|
|
|
2022-12-31 05:26:44 +00:00
|
|
|
resource "namecheap_domain_records" "othonotes" {
|
2022-12-31 05:24:28 +00:00
|
|
|
domain = "othonotes.com"
|
2023-01-01 07:58:34 +00:00
|
|
|
record {
|
|
|
|
hostname = "@"
|
|
|
|
address = var.host-rproxy
|
|
|
|
type = "ALIAS"
|
|
|
|
ttl = 300
|
|
|
|
}
|
|
|
|
record {
|
|
|
|
hostname = "www"
|
|
|
|
address = "othonotes.com."
|
|
|
|
type = "CNAME"
|
|
|
|
}
|
2022-12-31 05:24:28 +00:00
|
|
|
}
|
|
|
|
|
2022-12-31 05:26:44 +00:00
|
|
|
resource "namecheap_domain_records" "othostash" {
|
2022-12-31 05:24:28 +00:00
|
|
|
domain = "othostash.com"
|
2023-01-01 07:58:34 +00:00
|
|
|
record {
|
|
|
|
hostname = "websites"
|
|
|
|
address = var.host-rproxy
|
|
|
|
type = "CNAME"
|
|
|
|
}
|
|
|
|
record {
|
2023-01-18 05:24:35 +00:00
|
|
|
hostname = "browse"
|
2023-01-01 07:58:34 +00:00
|
|
|
address = var.host-rproxy
|
|
|
|
type = "CNAME"
|
|
|
|
}
|
2022-12-31 05:24:28 +00:00
|
|
|
}
|