aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--clarkzjw.cc/infra/tunnel.tf3
-rw-r--r--clarkzjw.cc/infra/variables.tf12
-rw-r--r--clarkzjw.cc/infra/versions.tf2
3 files changed, 8 insertions, 9 deletions
diff --git a/clarkzjw.cc/infra/tunnel.tf b/clarkzjw.cc/infra/tunnel.tf
index ba929c2..81c6ed4 100644
--- a/clarkzjw.cc/infra/tunnel.tf
+++ b/clarkzjw.cc/infra/tunnel.tf
@@ -14,7 +14,7 @@ resource "cloudflare_tunnel_config" "atlas_tunnel_route" {
14 // It seems the `origin_request` here doesn't enable `no_tls_verify` in each ingress_rule 14 // It seems the `origin_request` here doesn't enable `no_tls_verify` in each ingress_rule
15 // For now, you have to enable `no_tls_verify` in the dashboard 15 // For now, you have to enable `no_tls_verify` in the dashboard
16 origin_request { 16 origin_request {
17 no_tls_verify = true 17 no_tls_verify = true
18 } 18 }
19 ingress_rule { 19 ingress_rule {
20 hostname = "bt.${var.homelab_main_domain}" 20 hostname = "bt.${var.homelab_main_domain}"
@@ -25,7 +25,6 @@ resource "cloudflare_tunnel_config" "atlas_tunnel_route" {
25 hostname = "edgerouterx.${var.homelab_main_domain}" 25 hostname = "edgerouterx.${var.homelab_main_domain}"
26 path = "/" 26 path = "/"
27 service = "https://${var.edgerouterx_ip}" 27 service = "https://${var.edgerouterx_ip}"
28
29 } 28 }
30 ingress_rule { 29 ingress_rule {
31 service = "http_status:404" 30 service = "http_status:404"
diff --git a/clarkzjw.cc/infra/variables.tf b/clarkzjw.cc/infra/variables.tf
index dcee8e9..58e8976 100644
--- a/clarkzjw.cc/infra/variables.tf
+++ b/clarkzjw.cc/infra/variables.tf
@@ -16,18 +16,18 @@ variable "cloudflare_account_id" {
16 16
17variable "cloudflare_api_token" { 17variable "cloudflare_api_token" {
18 description = "Cloudflare API token" 18 description = "Cloudflare API token"
19 type = string 19 type = string
20 sensitive = true 20 sensitive = true
21} 21}
22 22
23variable "cloudflare_access_application_email" { 23variable "cloudflare_access_application_email" {
24 description = "Email addresses allowed in Cloudflare Access config" 24 description = "Email addresses allowed in Cloudflare Access config"
25 type = string 25 type = string
26 sensitive = false 26 sensitive = false
27} 27}
28 28
29variable "edgerouterx_ip" { 29variable "edgerouterx_ip" {
30 description = "IP address for EdgeRouterX" 30 description = "IP address for EdgeRouterX"
31 type = string 31 type = string
32 sensitive = false 32 sensitive = false
33} 33}
diff --git a/clarkzjw.cc/infra/versions.tf b/clarkzjw.cc/infra/versions.tf
index 63e88c2..c939f2c 100644
--- a/clarkzjw.cc/infra/versions.tf
+++ b/clarkzjw.cc/infra/versions.tf
@@ -5,7 +5,7 @@ terraform {
5 version = "~> 3.29" 5 version = "~> 3.29"
6 } 6 }
7 random = { 7 random = {
8 source = "hashicorp/random" 8 source = "hashicorp/random"
9 version = "~> 3.4.3" 9 version = "~> 3.4.3"
10 } 10 }
11 } 11 }
Powered by cgit v1.2.3 (git 2.41.0)