diff options
author | clarkzjw <[email protected]> | 2023-01-13 22:57:51 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-01-13 22:57:51 -0800 |
commit | 63673af754d77df0a4bd3fda6b38ebb91dca5bdb (patch) | |
tree | 233e9f050eb971340b4806169efa8a72c10800b7 /clarkzjw.cc/infra/tunnel.tf | |
parent | ad28eb8b886931995b7c294a80357a6c5dca1772 (diff) | |
download | homelab-63673af754d77df0a4bd3fda6b38ebb91dca5bdb.tar.gz |
cloudflare: add proxmox
Diffstat (limited to 'clarkzjw.cc/infra/tunnel.tf')
-rw-r--r-- | clarkzjw.cc/infra/tunnel.tf | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/clarkzjw.cc/infra/tunnel.tf b/clarkzjw.cc/infra/tunnel.tf index 81c6ed4..e891f07 100644 --- a/clarkzjw.cc/infra/tunnel.tf +++ b/clarkzjw.cc/infra/tunnel.tf | |||
@@ -13,9 +13,9 @@ resource "cloudflare_tunnel_config" "atlas_tunnel_route" { | |||
13 | // TODO: https://github.com/cloudflare/terraform-provider-cloudflare/issues/2072 | 13 | // TODO: https://github.com/cloudflare/terraform-provider-cloudflare/issues/2072 |
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}" |
21 | path = "/" | 21 | path = "/" |
@@ -27,6 +27,11 @@ resource "cloudflare_tunnel_config" "atlas_tunnel_route" { | |||
27 | service = "https://${var.edgerouterx_ip}" | 27 | service = "https://${var.edgerouterx_ip}" |
28 | } | 28 | } |
29 | ingress_rule { | 29 | ingress_rule { |
30 | hostname = "proxmox.${var.homelab_main_domain}" | ||
31 | path = "/" | ||
32 | service = "https://${var.proxmox_ip}:8006" | ||
33 | } | ||
34 | ingress_rule { | ||
30 | service = "http_status:404" | 35 | service = "http_status:404" |
31 | } | 36 | } |
32 | } | 37 | } |