blob: 4ec9a7fe89074ed6ceedf0fb465c7eda8e9a6975 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Argo tunnel
resource "cloudflare_argo_tunnel" "atlas_main_tunnel" {
account_id = var.cloudflare_account_id
name = "${var.homelab_main_domain}-tunnel"
secret = random_id.atlas_tunnel_secret.b64_std
}
resource "cloudflare_tunnel_config" "atlas_tunnel_route" {
account_id = var.cloudflare_account_id
tunnel_id = cloudflare_argo_tunnel.atlas_main_tunnel.id
config {
ingress_rule {
hostname = "bt.${var.homelab_main_domain}"
path = "/"
service = "http://127.0.0.1:8080"
}
ingress_rule {
service = "http_status:404"
}
}
}
|