Skip to content

Commit

Permalink
Add daily-workout
Browse files Browse the repository at this point in the history
  • Loading branch information
gerrited committed Jun 9, 2024
1 parent 6b4eecf commit 44da390
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions terraform/cloudflare.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ resource "cloudflare_record" "argocd" {
proxied = true
}

resource "cloudflare_record" "daily-workout" {
zone_id = var.cloudflare_zone_id
name = "daily-workout"
value = "${var.cloudflare_tunnel_id}.cfargotunnel.com"
type = "CNAME"
proxied = true
}

resource "cloudflare_record" "faas" {
zone_id = var.cloudflare_zone_id
name = "faas"
Expand Down Expand Up @@ -54,6 +62,10 @@ resource "cloudflare_tunnel_config" "auto_tunnel" {
hostname = cloudflare_record.argocd.hostname
service = "http://argocd-server.argocd.svc.cluster.local:80"
}
ingress_rule {
hostname = cloudflare_record.daily-workout.hostname
service = "http://daily-workout:80"
}
ingress_rule {
service = "http_status:404"
}
Expand Down

0 comments on commit 44da390

Please sign in to comment.