mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-06 15:12:30 +09:00
create_site installed WordPress at http://localhost:<port>, which WordPress bakes in as its canonical home/siteurl — reachable on the box but useless as a public site URL. New SiteDomainService resolves <slug>.<base_domain> (config SITES_BASE_DOMAIN: lvh.me in dev, opt-in in prod, empty falls back to the old localhost URL). create_site now installs at that host and provisions a primary Domain row + nginx reverse-proxy vhost (_provision_routing, best-effort so a box without nginx warns instead of failing). Teardown removes the vhost; clone_site URL rewriting is generalized via _canonical_site_url so cloning stays correct with real hostnames. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>