v0.3.17
v0.3.17
Flat preview hostnames (opt-in). PREVIEW_HOST_STYLE=flat puts every hostname one label under PREVIEW_DOMAIN — s-<id>-<port>.<domain>, console.<domain>, api.<domain> — so a single wildcard certificate covers all of them. Cloudflare's free Universal SSL, for example, only covers one level; with the default nested style (s-<id>-<port>.preview.<domain>, unchanged) previews need a second-level wildcard.
PREVIEW_HOST_TAG=<tag>appends--<tag>to each label (s-<id>-<port>--<tag>.<domain>,console--<tag>.<domain>) so several sandboxd instances can share one domain.CONSOLE_HOSTsets the console's hostname explicitly (defaults toconsole.<PREVIEW_DOMAIN>).- In flat mode the preview-auth cookie is scoped to the exact preview host (never a parent domain), so instances sharing a domain cannot see each other's cookies; each preview host authorises separately.
GET /v1/settingsreportspreview_host_styleandpreview_host_tag; the console shows them in Settings.- Default behaviour is unchanged. Traefik file rules accept both styles.