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.

1.3 KiB

+++ title = "Configure custom domain quotes.elijah.run → Cloudflare Pages (DNS record + Pages domain binding)" priority = 6 status = "todo" ticket_type = "task" dependencies = ["ae886f"] +++

Infrastructure is managed with OpenTofu using the Cloudflare provider. Configuration lives in `infra/`. Resources include a Cloudflare Worker (API), Cloudflare D1 database (bound to the worker), and a Cloudflare Pages project (UI frontend).

The frontend is served at the custom domain quotes.elijah.run. This requires a DNS record pointing to Cloudflare Pages and a custom domain binding on the Pages project.

Configure the custom domain in `infra/pages.tf` (or `infra/dns.tf`): 1. `cloudflare_pages_domain` resource — binds `quotes.elijah.run` to the Pages project 2. `cloudflare_record` resource — DNS CNAME record pointing `quotes` → the Pages `*.pages.dev` domain

Every block must have a comment.

- The Cloudflare zone ID for `elijah.run` must be provided as a variable or looked up via a `data` source. - SSL is handled automatically by Cloudflare — no certificate resources needed. Run from the `infra/` directory:
tofu validate
tofu plan
`feat(quotesdb): configure custom domain quotes.elijah.run for Cloudflare Pages`