mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-09 05:24:49 +09:00
Ran the real container and drove its API; corrected what only a live box reveals: - image is stalwartlabs/stalwart:latest — the assumed stalwartlabs/mail-server no longer resolves on Docker Hub (404 on pull) - config lives at /etc/stalwart/config.json and data at /opt/stalwart, so install() now bind-mounts two host dirs instead of one /opt/stalwart-mail - admin credential is pinned via a single STALWART_RECOVERY_ADMIN=user:secret env var (not FALLBACK_ADMIN_USER/SECRET) - a fresh container boots into BOOTSTRAP mode: only the /account setup UI is up and every /api/* returns 404 (RFC-7807 problem+json) until the one-time setup completes. get_status now probes /api/session and reports needs_setup + setup_url; the Overview UI shows a "finish setup" banner. Verified live: GET /api/session -> 404 problem+json. - _api parses the problem+json detail/title error shape Tests updated to the real install argv + two new cases (bootstrap needs_setup, problem+json parsing): 58 pass. Post-setup CRUD sub-paths (/api/principal etc.) remain best-effort constants until confirmed against a fully-initialized instance on a real box. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>