ADR 0012: Public host names: apex for the site, console for the platform
- Status
- Accepted
- Date
- Deciders
- Founder
Context
The scaffold derived four hosts from the domain (www., docs., app., api.). On the day the zone trovensa.com was delegated to Route 53 and before anything answered on those names, the founder asked for the marketing site on the bare domain and for the signed-in application to be called the platform console.
Decision
hosts.site = trovensa.com(apex;www.trovensa.comstays a CNAME to the same static distribution),hosts.docs = docs.trovensa.com,hosts.web = console.trovensa.com,hosts.api = api.trovensa.com.- The certificate covers
console.trovensa.comandapi.trovensa.com; the identity-provider redirect URIs arehttp://localhost:3100/auth/bridgeandhttps://console.trovensa.com/auth/bridge;CORS_ORIGINSandERROR_TYPE_BASEfollow the console host. - Every surface replaced the literals in one change (site metadata and deploy domain, docs footer and links, web brand, API defaults, deck closing slide, infra variables, ingress hosts, runbook and tests).
PRODUCT-PLAN.mdand earlier ADRs keep the original names as history.
Consequences
- The first release targets the new names; nothing ever answered on
app.orwww.so no redirects or 410s are needed. forge.config.jsonhosts.siteis the apex, so the static deploy script’s--domainistrovensa.comand the Route 53 module writes an apex A ALIAS plus thewwwCNAME.
Alternatives considered
- Keep
www.andapp.: the derived defaults; the founder prefers the bare domain and a console name; rejected. - Redirect
wwwto the apex at the CDN: the static host does that when both names are associated; kept as its default behaviour, no extra record type needed.
Follow-ups
- none