diff options
| author | Seth Flynn <[email protected]> | 2025-02-08 21:43:53 -0500 |
|---|---|---|
| committer | Seth Flynn <[email protected]> | 2025-02-08 21:58:07 -0500 |
| commit | 8ab941349bb62adcceec583dc1e08d36bc696e93 (patch) | |
| tree | c28823f150efc35a2b9bdf822878f262acc6990c /terraform/dns.tf | |
| parent | 9b3b1f2a43cd4e5686a713e60cadaf9598aa2a1d (diff) | |
atlas: don't use cloudflare tunnels
Diffstat (limited to 'terraform/dns.tf')
| -rw-r--r-- | terraform/dns.tf | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/terraform/dns.tf b/terraform/dns.tf index cd914bf..31bd9d6 100644 --- a/terraform/dns.tf +++ b/terraform/dns.tf @@ -28,7 +28,6 @@ locals { } ]]) - getchoo_tunnels = data.cloudflare_zero_trust_tunnel_cloudflared.getchoo_tunnels getchoo_records = [ { name = "@" @@ -47,13 +46,13 @@ locals { }, { name = "miniflux" - type = "CNAME" - content = "${local.getchoo_tunnels["atlas-nginx"].id}.cfargotunnel.com" + type = "A" + content = resource.oci_core_instance.atlas.public_ip }, { name = "git" - type = "CNAME" - content = "${local.getchoo_tunnels["atlas-nginx"].id}.cfargotunnel.com" + type = "A" + content = resource.oci_core_instance.atlas.public_ip }, { name = "@" @@ -63,13 +62,6 @@ locals { ] } -data "cloudflare_zero_trust_tunnel_cloudflared" "getchoo_tunnels" { - for_each = toset(["atlas-nginx"]) - - account_id = var.cloudflare_account_id - name = each.key -} - resource "cloudflare_record" "getchoo_com" { for_each = { for record in local.getchoo_records : "${record.name}-${record.type}" => record } |
