Skip to content

Commit

Permalink
change DNS configuration to use proxy and update EIP state (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaMandal0rian authored Jan 30, 2025
1 parent 8bfce5b commit 50378c6
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions templates/terraform/subql/base/dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ resource "cloudflare_record" "subql-blue" {
name = "${var.blue-subql-node-config.domain-prefix}.${var.blue-subql-node-config.network-name}"
value = local.blue_subql_node_ip_v4[count.index]
type = "A"
ttl = "3600"
ttl = "1"
proxied = true
}

resource "cloudflare_record" "subql-green" {
Expand All @@ -17,7 +18,8 @@ resource "cloudflare_record" "subql-green" {
name = "${var.green-subql-node-config.domain-prefix}.${var.green-subql-node-config.network-name}"
value = local.green_subql_node_ip_v4[count.index]
type = "A"
ttl = "3600"
ttl = "1"
proxied = true
}

resource "cloudflare_record" "subql-live" {
Expand All @@ -26,7 +28,8 @@ resource "cloudflare_record" "subql-live" {
name = "subql.${var.network_name}"
value = local.blue_subql_node_ip_v4[count.index]
type = "A"
ttl = "3600"
ttl = "1"
proxied = true
}

resource "cloudflare_record" "nova-subql-blue" {
Expand All @@ -35,7 +38,8 @@ resource "cloudflare_record" "nova-subql-blue" {
name = "${var.nova-blue-subql-node-config.domain-prefix}.${var.network_name}"
value = local.blue_subql_node_ip_v4[count.index]
type = "A"
ttl = "3600"
ttl = "1"
proxied = true
}

resource "cloudflare_record" "nova-subql-green" {
Expand All @@ -44,7 +48,8 @@ resource "cloudflare_record" "nova-subql-green" {
name = "${var.nova-green-subql-node-config.domain-prefix}.${var.network_name}"
value = local.nova_green_subql_node_ip_v4[count.index]
type = "A"
ttl = "3600"
ttl = "1"
proxied = true
}

resource "cloudflare_record" "nova-subql-live" {
Expand All @@ -53,5 +58,6 @@ resource "cloudflare_record" "nova-subql-live" {
name = "nova.subql.${var.network_name}"
value = local.nova_blue_subql_node_ip_v4[count.index]
type = "A"
ttl = "3600"
ttl = "1"
proxied = true
}

0 comments on commit 50378c6

Please sign in to comment.