Skip to content

feat: add xread worker under Terraform IaC#6

Merged
chapati23 merged 4 commits into
mainfrom
feat/xread-worker
Mar 19, 2026
Merged

feat: add xread worker under Terraform IaC#6
chapati23 merged 4 commits into
mainfrom
feat/xread-worker

Conversation

@gisk0

@gisk0 gisk0 commented Mar 19, 2026

Copy link
Copy Markdown
Owner

What

Brings the xread Cloudflare Worker under Terraform IaC, matching the pattern already established for obsidian-redirect.

Changes

  • workers/xread/index.js — Worker source (proxies X/Twitter URLs through xtomd.com for readable HTML)
  • terraform/main.tf — Adds cloudflare_workers_script.xread + cloudflare_workers_route.xread_gisk0_dev
  • terraform/outputs.tf — Adds xread_url output

Verification

tofu plan shows 2 resources to add (script + route), 0 existing resources changed.

To apply

cd terraform
CLOUDFLARE_API_TOKEN=$(pass cloudflare/workers-api-token) \
  TF_VAR_publish_token=$(pass obsidian-redirect/publish-token) \
  tofu apply

gisk0 added 4 commits March 19, 2026 10:11
- Add workers/xread/index.js: proxies X/Twitter URLs through xtomd.com
  to render clean, readable HTML
- Add cloudflare_workers_script.xread resource
- Add cloudflare_workers_route for xread.gisk0.dev/*
- Add xread_url output

The xread worker was previously deployed manually via CF API.
This brings it under IaC parity with obsidian-redirect.
@chapati23
chapati23 merged commit aa0a6b0 into main Mar 19, 2026
3 checks passed
@chapati23
chapati23 deleted the feat/xread-worker branch March 19, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants