A group that takes a handle on its own domain, such as riders.org, keeps its site at its address, riders.groups.example.com. There is no way to serve the site at riders.org (or www.riders.org), which is what a group with a domain of its own wants its visitors to see.
How to see it
Give a group a handle on a domain of its own (Settings, Handle, "Use your own domain"), publish a site, and open https://riders.org/: nothing there is the host's. The site answers only at https://riders.groups.example.com/ (sites::site_of looks the request's hostname up among addresses alone).
What you expected
The site served on the group's own domain, decided as follows:
Its domain comes from the handle. The site is served at the handle's domain or at www. under it, nothing else. The _atproto record that already proves the group controls the domain is the only proof, and "Go back" to the address drops the site's domain with the handle. A group whose handle is its address has no other domain for its site.
The address stays. It is kept for the group whatever its handle (held_here), so it is never freed for another group. Pages there redirect (301) to the domain while the domain still names the group (the check the console makes for its warning); when it stops, the address serves the site itself again.
On the domain, the host answers what the address answers for a site: its files, sandboxed; /.well-known/ and /xrpc/; and for a site that names reads, the page around it, with a client document and callback of its own at the domain (client_idhttps://riders.org/client-metadata.json). Visitors signed in at the address sign in once more at the domain.
Certificates on demand. The proxy issues one as each domain first connects (Caddy's on_demand_tls), asking the host first: a new route answers 200 only for a domain that is the site's domain of an active group whose handle still names it, so nobody can point DNS at the host and spend its certificate limits. A catch-all :443 block passes Host through to the host.
DNS is the group's to set: an A/AAAA record (or a CNAME for www.) to the host. The Handle card says what to add once the handle is the domain.
Moves carry nothing new: the handle moves with the group, and the new host serves the site once DNS points at it.
Where
Design only; nothing built. The proxy half (docs/deploying.md, on_demand_tls, the catch-all block) can only be tried once deploys reach next.opensocial.fyi again (issue 3n25dojefqsn2); the host half (the ask route, routing by domain, the redirect, the second client) is testable here first.
What happened
A group that takes a handle on its own domain, such as
riders.org, keeps its site at its address,riders.groups.example.com. There is no way to serve the site atriders.org(orwww.riders.org), which is what a group with a domain of its own wants its visitors to see.How to see it
Give a group a handle on a domain of its own (Settings, Handle, "Use your own domain"), publish a site, and open
https://riders.org/: nothing there is the host's. The site answers only athttps://riders.groups.example.com/(sites::site_oflooks the request's hostname up among addresses alone).What you expected
The site served on the group's own domain, decided as follows:
www.under it, nothing else. The_atprotorecord that already proves the group controls the domain is the only proof, and "Go back" to the address drops the site's domain with the handle. A group whose handle is its address has no other domain for its site.held_here), so it is never freed for another group. Pages there redirect (301) to the domain while the domain still names the group (the check the console makes for its warning); when it stops, the address serves the site itself again./.well-known/and/xrpc/; and for a site that namesreads, the page around it, with a client document and callback of its own at the domain (client_idhttps://riders.org/client-metadata.json). Visitors signed in at the address sign in once more at the domain.on_demand_tls), asking the host first: a new route answers 200 only for a domain that is the site's domain of an active group whose handle still names it, so nobody can point DNS at the host and spend its certificate limits. A catch-all:443block passesHostthrough to the host.A/AAAArecord (or aCNAMEforwww.) to the host. The Handle card says what to add once the handle is the domain.Where
Design only; nothing built. The proxy half (
docs/deploying.md,on_demand_tls, the catch-all block) can only be tried once deploys reach next.opensocial.fyi again (issue3n25dojefqsn2); the host half (the ask route, routing by domain, the redirect, the second client) is testable here first.