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.
40 lines
1.3 KiB
Markdown
40 lines
1.3 KiB
Markdown
+++
|
|
title = "Configure custom domain quotes.elijah.run → Cloudflare Pages (DNS record + Pages domain binding)"
|
|
priority = 6
|
|
status = "todo"
|
|
ticket_type = "task"
|
|
dependencies = ["ae886f"]
|
|
+++
|
|
|
|
<context>
|
|
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.
|
|
</context>
|
|
|
|
<goal>
|
|
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.
|
|
</goal>
|
|
|
|
<constraints>
|
|
- 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.
|
|
</constraints>
|
|
|
|
<validation>
|
|
Run from the `infra/` directory:
|
|
|
|
```sh
|
|
tofu validate
|
|
tofu plan
|
|
```
|
|
</validation>
|
|
|
|
<commit>
|
|
`feat(quotesdb): configure custom domain quotes.elijah.run for Cloudflare Pages`
|
|
</commit>
|