Skip to content

Commit

Permalink
trying minecraft server on cf tunnel
Browse files Browse the repository at this point in the history
  • Loading branch information
RWejlgaard committed Nov 8, 2023
1 parent 4da2f5d commit e8242fe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cloudflare_dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ resource "cloudflare_record" "minecraft-map" {
proxied = true
}

resource "cloudflare_record" "minecraft" {
zone_id = cloudflare_zone.pez-sh.id
name = "minecraft"
type = "CNAME"
value = "${cloudflare_tunnel.london-a.id}.cfargotunnel.com"
proxied = true
}

resource "cloudflare_record" "prowlarr" {
zone_id = cloudflare_zone.pez-sh.id
name = "prowlarr"
Expand Down
4 changes: 4 additions & 0 deletions cloudflare_tunnels.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ resource "cloudflare_tunnel_config" "london-a" {
hostname = "minecraft-map.pez.sh"
service = "http://localhost:8124"
}
ingress_rule {
hostname = "minecraft.pez.sh"
service = "tcp://localhost:25565"
}
ingress_rule {
service = "http_status:404"
}
Expand Down

0 comments on commit e8242fe

Please sign in to comment.