mirror of
https://asciireactor.com/otho/stashapp
synced 2024-11-22 16:45:08 +00:00
Removed file index dns and update backend.
This commit is contained in:
parent
703b31a847
commit
352e25b719
67
dns.tf
67
dns.tf
@ -7,9 +7,9 @@ terraform {
|
|||||||
}
|
}
|
||||||
|
|
||||||
backend "http" {
|
backend "http" {
|
||||||
address = "https://asciireactor.com/api/v4/projects/131/terraform/state/personal-database"
|
address = "https://asciireactor.com/api/v4/projects/131/terraform/state/library-app"
|
||||||
lock_address = "https://asciireactor.com/api/v4/projects/131/terraform/state/personal-database/lock"
|
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/personal-database/lock"
|
unlock_address = "https://asciireactor.com/api/v4/projects/131/terraform/state/library-app/lock"
|
||||||
lock_method = "POST"
|
lock_method = "POST"
|
||||||
unlock_method = "DELETE"
|
unlock_method = "DELETE"
|
||||||
retry_wait_min = 5
|
retry_wait_min = 5
|
||||||
@ -18,53 +18,36 @@ terraform {
|
|||||||
|
|
||||||
provider "namecheap" {}
|
provider "namecheap" {}
|
||||||
|
|
||||||
variable "saline-rproxy" {
|
variable "host-rproxy" {
|
||||||
type = string
|
type = string
|
||||||
default = "rprxy-0.saline.o4data.net."
|
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 = var.saline-rproxy
|
address = var.host-rproxy
|
||||||
type = "ALIAS"
|
type = "ALIAS"
|
||||||
ttl = 300
|
ttl = 300
|
||||||
}
|
}
|
||||||
record {
|
record {
|
||||||
hostname = "www"
|
hostname = "www"
|
||||||
address = "othonotes.com."
|
address = "othonotes.com."
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "namecheap_domain_records" "othostash" {
|
resource "namecheap_domain_records" "othostash" {
|
||||||
domain = "othostash.com"
|
domain = "othostash.com"
|
||||||
|
record {
|
||||||
record {
|
hostname = "websites"
|
||||||
hostname = "@"
|
address = var.host-rproxy
|
||||||
address = var.stashbox-vip
|
type = "CNAME"
|
||||||
type = "ALIAS"
|
}
|
||||||
ttl = 300
|
record {
|
||||||
}
|
hostname = "filemanager"
|
||||||
record {
|
address = var.host-rproxy
|
||||||
hostname = "www"
|
type = "CNAME"
|
||||||
address = "othostash.com."
|
}
|
||||||
type = "CNAME"
|
|
||||||
}
|
|
||||||
record {
|
|
||||||
hostname = "websites"
|
|
||||||
address = var.saline-rproxy
|
|
||||||
type = "CNAME"
|
|
||||||
}
|
|
||||||
record {
|
|
||||||
hostname = "filemanager"
|
|
||||||
address = var.saline-rproxy
|
|
||||||
type = "CNAME"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user