forked from public/stack
Re-add NameCheap main record
This commit is contained in:
parent
55df7fa5c2
commit
fa16d54735
|
@ -71,22 +71,15 @@ output "cdn_origin" {
|
||||||
value = digitalocean_cdn.distrust_co.origin
|
value = digitalocean_cdn.distrust_co.origin
|
||||||
}
|
}
|
||||||
|
|
||||||
# # Handle record for distrust.co
|
# Handle record for distrust.co
|
||||||
# resource "digitalocean_record" "distrust_co-cdn" {
|
resource "digitalocean_record" "distrust_co-cdn" {
|
||||||
# domain = digitalocean_domain.default.name
|
|
||||||
# type = "CNAME"
|
|
||||||
# name = "@"
|
|
||||||
# value = "${digitalocean_cdn.distrust_co.origin}."
|
|
||||||
# depends_on = [
|
|
||||||
# digitalocean_cdn.distrust_co
|
|
||||||
# ]
|
|
||||||
# }
|
|
||||||
|
|
||||||
resource "digitalocean_record" "CNAME-www" {
|
|
||||||
domain = digitalocean_domain.default.name
|
domain = digitalocean_domain.default.name
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
name = "www-main"
|
name = "@"
|
||||||
value = "@"
|
value = "${digitalocean_cdn.distrust_co.origin}."
|
||||||
|
depends_on = [
|
||||||
|
digitalocean_cdn.distrust_co
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
# NameCheap Records
|
# NameCheap Records
|
||||||
|
@ -106,16 +99,16 @@ resource "digitalocean_record" "billing" {
|
||||||
|
|
||||||
resource "digitalocean_record" "chat" {
|
resource "digitalocean_record" "chat" {
|
||||||
domain = digitalocean_domain.default.id
|
domain = digitalocean_domain.default.id
|
||||||
type = "A"
|
type = "CNAME"
|
||||||
name = "chat"
|
name = "chat"
|
||||||
value = "143.198.235.76"
|
value = "distrust.element.io."
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "digitalocean_record" "www" {
|
resource "digitalocean_record" "www" {
|
||||||
domain = digitalocean_domain.default.id
|
domain = digitalocean_domain.default.id
|
||||||
type = "A"
|
type = "CNAME"
|
||||||
name = "www"
|
name = "www"
|
||||||
value = "143.198.235.76"
|
value = "${digitalocean_domain.default.id}."
|
||||||
}
|
}
|
||||||
|
|
||||||
# Mail records
|
# Mail records
|
||||||
|
|
Loading…
Reference in New Issue