summaryrefslogtreecommitdiff
path: root/terraform
diff options
context:
space:
mode:
authorSeth Flynn <[email protected]>2025-02-08 21:43:53 -0500
committerSeth Flynn <[email protected]>2025-02-08 21:58:07 -0500
commit8ab941349bb62adcceec583dc1e08d36bc696e93 (patch)
treec28823f150efc35a2b9bdf822878f262acc6990c /terraform
parent9b3b1f2a43cd4e5686a713e60cadaf9598aa2a1d (diff)
atlas: don't use cloudflare tunnels
Diffstat (limited to 'terraform')
-rw-r--r--terraform/dns.tf16
-rw-r--r--terraform/oci.tf24
2 files changed, 28 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 }
diff --git a/terraform/oci.tf b/terraform/oci.tf
index 704ff2c..9801e3b 100644
--- a/terraform/oci.tf
+++ b/terraform/oci.tf
@@ -55,4 +55,28 @@ resource "oci_core_security_list" "borealis_global" {
protocol = "1"
source = "10.0.0.0/16"
}
+
+ ingress_security_rules {
+ description = "Allow HTTP traffic"
+
+ protocol = "6"
+ source = "0.0.0.0/0"
+
+ tcp_options {
+ min = 80
+ max = 80
+ }
+ }
+
+ ingress_security_rules {
+ description = "Allow HTTPS traffic"
+
+ protocol = "6"
+ source = "0.0.0.0/0"
+
+ tcp_options {
+ min = 443
+ max = 443
+ }
+ }
}