You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
925 B
HCL

# DNS record for pages.elijah.run.
#
# Unlike ../quotesdb (a Cloudflare Pages project fronted by a CNAME to its
# *.pages.dev subdomain), pages.elijah.run is served by a Worker route
# declared in ../wrangler.toml ([[routes]] pattern = "pages.elijah.run/*",
# see pages/CLAUDE.md "Deviations from repo defaults"). A Worker route only
# intercepts traffic for a hostname that already resolves through Cloudflare's
# proxy — it does not need a real origin IP, since the Worker itself
# generates the response. The conventional placeholder is a proxied AAAA
# record pointing at the documented "black hole" address 100::/64
# (RFC 6666 discard prefix); Cloudflare never actually connects to it because
# the orange-clouded record is only there to make the hostname proxied.
resource "cloudflare_record" "pages" {
zone_id = var.cloudflare_zone_id
name = "pages"
type = "AAAA"
content = "100::"
proxied = true
}