mirror of
https://asciireactor.com/otho/stashapp
synced 2024-11-22 16:45:08 +00:00
Updates to dns terraform.
This commit is contained in:
parent
5d3a43f8d1
commit
6e47c50654
18
domain.tf
18
domain.tf
@ -18,11 +18,21 @@ terraform {
|
|||||||
|
|
||||||
provider "namecheap" {}
|
provider "namecheap" {}
|
||||||
|
|
||||||
|
variable "saline-rproxy" {
|
||||||
|
type = string
|
||||||
|
default = "rprxy-0.saline.o4data.net."
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "stashbox-vip" {
|
||||||
|
type = string
|
||||||
|
default = "stashbox.delhi.o4data.net."
|
||||||
|
}
|
||||||
|
|
||||||
resource "namecheap_domain_records" "othonotes" {
|
resource "namecheap_domain_records" "othonotes" {
|
||||||
domain = "othonotes.com"
|
domain = "othonotes.com"
|
||||||
record {
|
record {
|
||||||
hostname = "@"
|
hostname = "@"
|
||||||
address = "rprxy-0.saline.o4data.net"
|
address = var.saline-rproxy
|
||||||
type = "ALIAS"
|
type = "ALIAS"
|
||||||
ttl = 300
|
ttl = 300
|
||||||
}
|
}
|
||||||
@ -38,7 +48,7 @@ resource "namecheap_domain_records" "othostash" {
|
|||||||
|
|
||||||
record {
|
record {
|
||||||
hostname = "@"
|
hostname = "@"
|
||||||
address = "stashbox.delhi.o4data.net"
|
address = var.stashbox-vip
|
||||||
type = "ALIAS"
|
type = "ALIAS"
|
||||||
ttl = 300
|
ttl = 300
|
||||||
}
|
}
|
||||||
@ -49,12 +59,12 @@ resource "namecheap_domain_records" "othostash" {
|
|||||||
}
|
}
|
||||||
record {
|
record {
|
||||||
hostname = "websites"
|
hostname = "websites"
|
||||||
address = "rprxy-0.saline.o4data.net"
|
address = var.saline-rproxy
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
}
|
}
|
||||||
record {
|
record {
|
||||||
hostname = "filemanager"
|
hostname = "filemanager"
|
||||||
address = "rprxy-0.saline.o4data.net"
|
address = var.saline-rproxy
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user