mirror of
https://asciireactor.com/otho/stashbox
synced 2024-11-22 21:45:09 +00:00
Compare commits
No commits in common. "a95ffd8f89b3df778ce93252b79e21346a1a7d4b" and "de1af64967840fce6eee7a94a4c149e4c4b70fba" have entirely different histories.
a95ffd8f89
...
de1af64967
64
dns.tf
64
dns.tf
@ -5,76 +5,60 @@ terraform {
|
|||||||
version = "~> 2.1.0"
|
version = "~> 2.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
backend "http" {}
|
|
||||||
|
backend "http" {
|
||||||
|
address = "https://asciireactor.com/api/v4/projects/133/terraform/state/library-index"
|
||||||
|
lock_address = "https://asciireactor.com/api/v4/projects/133/terraform/state/library-index/lock"
|
||||||
|
unlock_address = "https://asciireactor.com/api/v4/projects/133/terraform/state/library-index/lock"
|
||||||
|
lock_method = "POST"
|
||||||
|
unlock_method = "DELETE"
|
||||||
|
retry_wait_min = 5
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
provider "namecheap" {}
|
provider "namecheap" {}
|
||||||
|
|
||||||
variable "subnet" {
|
variable "network" {
|
||||||
type = string
|
type = string
|
||||||
default = "fd00"
|
default = "2603:3015:1003:56cd"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "db_addr" {
|
variable "ipv4" {
|
||||||
type = string
|
type = string
|
||||||
default = "::1"
|
default = "96.78.236.124"
|
||||||
}
|
|
||||||
|
|
||||||
variable "feed_addr" {
|
|
||||||
type = string
|
|
||||||
default = "::2"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "db_ipv4_addr" {
|
|
||||||
type = string
|
|
||||||
default = "192.168.0.1"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "domain" {
|
|
||||||
type = string
|
|
||||||
default = "library.local"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "feed_subdomain_name" {
|
|
||||||
type = string
|
|
||||||
default = "feed"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "plex_subdomain_name" {
|
|
||||||
type = string
|
|
||||||
default = "plex"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "namecheap_domain_records" "othostash" {
|
resource "namecheap_domain_records" "othostash" {
|
||||||
domain = var.domain
|
domain = "othostash.com"
|
||||||
record {
|
record {
|
||||||
hostname = "@"
|
hostname = "@"
|
||||||
address = "${var.subnet}${var.db_addr}"
|
address = "${var.network}::dad:db"
|
||||||
type = "AAAA"
|
type = "AAAA"
|
||||||
}
|
}
|
||||||
record {
|
record {
|
||||||
hostname = var.feed_subdomain_name
|
hostname = "feed"
|
||||||
address = "${var.subnet}${var.feed_addr}"
|
address = "${var.network}::dad:feed"
|
||||||
type = "AAAA"
|
type = "AAAA"
|
||||||
}
|
}
|
||||||
record {
|
record {
|
||||||
hostname = "www"
|
hostname = "www"
|
||||||
address = var.domain
|
address = "othostash.com"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
}
|
}
|
||||||
record {
|
record {
|
||||||
hostname = var.plex_subdomain_name
|
hostname = "plex"
|
||||||
address = "${var.feed_subdomain_name}.${var.domain}"
|
address = "feed.othostash.com"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
}
|
}
|
||||||
|
|
||||||
record {
|
record {
|
||||||
hostname = "@"
|
hostname = "@"
|
||||||
address = var.db_ipv4_addr
|
address = var.ipv4
|
||||||
type = "A"
|
type = "A"
|
||||||
}
|
}
|
||||||
record {
|
record {
|
||||||
hostname = var.feed_subdomain_name
|
hostname = "feed"
|
||||||
address = var.db_ipv4_addr
|
address = var.ipv4
|
||||||
type = "A"
|
type = "A"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user