Files
teahub/pages
teahubxyzandClaude Opus 5.5 e4937e3c7f pages: apex redirects /<dir>/ only for venture pages (dir has index.html); asset folders and .well-known stay on the apex
Fixes the shot of a venture whose subdomain is not ours (aicharts.yolopreneur.lol is a Worker) and the
NIP-05 path at the apex. Also: HEAD flag no longer shadowed by the path segment (that bug emptied every GET body).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CYHXFvWMCs1GUmRmpySqQ6
2026-10-14 21:39:17 +00:00
..
2026-10-14 07:29:24 +00:00
2026-10-14 07:29:59 +00:00

Teahub pages (green-tea-pages)

The pages convention for orgs on prod: an org's public site repo is served at its domain. PAGES_SITES in fly.toml maps hostnames to org/site. The server clones each repo over https (no token), serves static files (directory → index.html, missing → 404.html), and re-pulls every 5 minutes or on POST /_hook/<org>/site (a Gitea webhook on the repo, push events, no secret: the hook only triggers a pull of public content).

Adding a site: a line in PAGES_SITES + fly deploy (operator lane), fly certs add <host>, the _acme-challenge CNAME, then A/AAAA to the app's IPs (fly ips list), and a push webhook on the site repo.

Live: persimmons.app → persimmons/site, phast.app → phast/site.