Re-add NameCheap main record

This commit is contained in:
Shane Engelman 2023-02-09 21:56:00 -06:00
parent 55df7fa5c2
commit fa16d54735
Signed by: shane
GPG Key ID: D9DF703B83B9A9B5
1 changed files with 11 additions and 18 deletions

View File

@ -71,22 +71,15 @@ output "cdn_origin" {
value = digitalocean_cdn.distrust_co.origin
}
# # Handle record for distrust.co
# 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" {
# Handle record for distrust.co
resource "digitalocean_record" "distrust_co-cdn" {
domain = digitalocean_domain.default.name
type = "CNAME"
name = "www-main"
value = "@"
name = "@"
value = "${digitalocean_cdn.distrust_co.origin}."
depends_on = [
digitalocean_cdn.distrust_co
]
}
# NameCheap Records
@ -106,16 +99,16 @@ resource "digitalocean_record" "billing" {
resource "digitalocean_record" "chat" {
domain = digitalocean_domain.default.id
type = "A"
type = "CNAME"
name = "chat"
value = "143.198.235.76"
value = "distrust.element.io."
}
resource "digitalocean_record" "www" {
domain = digitalocean_domain.default.id
type = "A"
type = "CNAME"
name = "www"
value = "143.198.235.76"
value = "${digitalocean_domain.default.id}."
}
# Mail records