Skip to content

v0.1.12

Latest

Choose a tag to compare

@lukastk lukastk released this 29 Jun 12:41
· 18 commits to main since this release
3525d1f

Fixes

  • Static multi-page sites (#11, #13): static deploys now resolve directory URLs like /foo/ to /foo/index.html before the SPA fallback (try_files {path} {path}/index.html /index.html). Fixes inner pages of multi-page static sites serving the root index.html. (#12)
  • Multiple gardens on one host (#9):
    • Caddy's managed block in /etc/caddy/Caddyfile is now keyed per app_root, so server init for one garden no longer clobbers another garden's import lines. (#14)
    • Port allocation respects the target garden's context. (#10)
  • Host-global ports registry (#15): port allocations now live in a single host-level registry at /var/lib/appgarden/ports.json, shared by every garden on a host under one lock. Ports are a box-global resource (all gardens share the host's TCP port space), so this prevents two co-located gardens from handing out the same host port. garden.json stays per-garden.
  • Migration safety (#16): on first creation, the host registry is seeded from the legacy per-app_root ports.json (preserving active tunnel reservations) and reconciled from each garden's garden.json.

Upgrading a multi-garden host

Run appgarden server init once per garden — each init reconciles that garden's app ports into the shared /var/lib/appgarden/ports.json (idempotent).