Skip to content

v0.3.17

Choose a tag to compare

@tastyeffectco tastyeffectco released this 28 Aug 17:14
· 10 commits to main since this release

v0.3.17

Flat preview hostnames (opt-in). PREVIEW_HOST_STYLE=flat puts every hostname one label under PREVIEW_DOMAINs-<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_HOST sets the console's hostname explicitly (defaults to console.<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/settings reports preview_host_style and preview_host_tag; the console shows them in Settings.
  • Default behaviour is unchanged. Traefik file rules accept both styles.